repl
repl copied to clipboard
Standalone Output Component
As initially discussed here, for both the standalone and the embedded use cases, you could consider extracting the Output component whose only purpose is to show compiled results or preview. Store data like files and importmap could be provided through the prop.
Then it's possible to use any favorable editor(monaco or codemirror) with the Output component, and we could use the Output component alone as a readonly preview of a project.
@yyx990803 Would you consider building such a component(package)? If so, I can contribute!
That's a great idea. I am looking forward to it as well.