Console Output
- {output && Done}
+ {isRunning ? (
+ Executing...
+ ) : outputLines.length > 0 ? (
+ Done
+ ) : null}
{() =>
- output || (
+ outputLines.length > 0 ? (
+ outputLines.join("\n")
+ ) : (
// Run the code to see results...
@@ -201,4 +292,4 @@ export default function JSEditor({ children = "", title = "index.js" }: Props) {