S
SolidJS2y ago
jmp

Using SolidJS Playground in custom docs

I'd like to use the solidjs playground for interactive documentation of my library. (Should I use sandpack instead?) I noticed that an old version of solid-repl has been published to npm, but it hasn't been updated in a year. Meanwhile solid-playground seems to be chugging along, but it's not published. How can I use solidjs playground (or an equivalent live code editor) for my documentation? Thanks in advance!
2 Replies
Tommypop
Tommypop2y ago
Hi, the new playground is currently being integrated with solid-site, and, as far as I know, a new version of solid-repl will be published when this integration is finished You can clone the playground repo, and run npm build:lib, and that should build the solid-repl package, which you should just be able to import from your app
jmp
jmpOP2y ago
Thanks! I'll try that
Want results from more Discord servers?
Add your server