repl icon indicating copy to clipboard operation
repl copied to clipboard

Standalone Output Component

Open phantomlsh opened this issue 3 years ago • 2 comments

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.

phantomlsh avatar Sep 28 '21 00:09 phantomlsh

@yyx990803 Would you consider building such a component(package)? If so, I can contribute!

phantomlsh avatar Oct 06 '21 23:10 phantomlsh

That's a great idea. I am looking forward to it as well.

CutePikachu avatar Oct 21 '21 00:10 CutePikachu