Closed flixyudh closed 1 week ago
We won't be adding that support directly to React-Live, but if you want to try to implement it in your Docusaurus site by swizzling the scope.
npm run swizzle @docusaurus/theme-live-codeblock ReactLiveScope
This will generate a file under src/theme/ReactLiveScope
where you can import things into the scope of the playground environment.
You can see where React Native Elements uses this in their website here.
Then, you can use a plugin in Docusarus to modify your webpack config as shown here
Great, I will try it, thank you for the insight
Is there an existing issue for this?
Code of Conduct
Feature Request