3 ms·
Very good idea, and you're not alone. The upcoming documentation[0] for React will have a similar feature built on Sandpack[1][2]. [0]: https://beta.reactjs.or
by mimsee 4y ago
Very good idea, and you're not alone. The upcoming documentation[0] for React will have a similar feature built on Sandpack[1][2].
[0]: https://beta.reactjs.org/learn https://beta.reactjs.org/learn
[1]: https://sandpack.codesandbox.io/ https://sandpack.codesandbox.io/
[2]: https://news.ycombinator.com/item?id=29417937 https://news.ycombinator.com/item?id=29417937
- mlejva 4y agoThank you. I'm a fan of Sandpack and CodeSandbox:) The dev docs future looks exciting!
- nl 4y agoWe've used https://docusaurus.io/docs/markdown-features/code-blocks#interactive-code-editor https://docusaurus.io/docs/markdown-features/code-blocks#int... do do this ourselves. No need to use codesandbox.
- slorber 4y agoDocusaurus maintainer here Yes we like MDX and live code blocks to embed natively runnable code in your page. I don't like the idea of loading a remote iframe much (at least for most cases using JS). The StackBlitz / WebContainer approach also seems better than a remote VM + iframe We'll likely use a project called React-Runner in the future, quite similar to our current setup (real native embed) but lighter.