mirror of
https://github.com/facebook/docusaurus.git
synced 2025-04-29 18:27:56 +02:00
docs: swizzle react-live with eject (#7739)
docs: swizzle react-live with eject (#7735)
This commit is contained in:
parent
2e83a1b522
commit
ad1d2d2ab1
1 changed files with 1 additions and 1 deletions
|
@ -519,7 +519,7 @@ It is not possible to import components directly from the react-live code editor
|
|||
By default, all React imports are available. If you need more imports available, swizzle the react-live scope:
|
||||
|
||||
```bash npm2yarn
|
||||
npm run swizzle @docusaurus/theme-live-codeblock ReactLiveScope
|
||||
npm run swizzle @docusaurus/theme-live-codeblock ReactLiveScope -- --eject
|
||||
```
|
||||
|
||||
```jsx title="src/theme/ReactLiveScope/index.js"
|
||||
|
|
Loading…
Add table
Reference in a new issue