mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-16 18:46:57 +02:00
docs: changing shopping card to shopping cart (#8898)
* docs: changing shopping card to shopping cart * docs: changing shoppping card to shoppint cart (retriggering builds)
This commit is contained in:
parent
f852ea631f
commit
9c7e29a157
6 changed files with 6 additions and 6 deletions
|
@ -308,7 +308,7 @@ Swizzling ultimately means you have to maintain some additional React code that
|
|||
|
||||
## Wrapping your site with `<Root>` {#wrapper-your-site-with-root}
|
||||
|
||||
The `<Root>` component is rendered at the **very top** of the React tree, above the theme `<Layout>`, and **never unmounts**. It is the perfect place to add stateful logic that should not be re-initialized across navigations (user authentication status, shopping card state...).
|
||||
The `<Root>` component is rendered at the **very top** of the React tree, above the theme `<Layout>`, and **never unmounts**. It is the perfect place to add stateful logic that should not be re-initialized across navigations (user authentication status, shopping cart state...).
|
||||
|
||||
Swizzle it **manually** by creating a file at `src/theme/Root.js`:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue