docs: swizzle react-live with eject (#7739)

docs: swizzle react-live with eject (#7735)
This commit is contained in:
SheetJSDev 2022-07-08 00:55:39 -04:00 committed by GitHub
parent 2e83a1b522
commit ad1d2d2ab1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"