The Node.js REPL in a React component.
Get Started<NodeREPL
code={code}
setupCode={setupCode}
deps={deps}
style={{ height: "60vh" }}
layout="SPLIT_PANEL"
/>
Press `CTRL + Enter` in the editor to run the code.
By default, in REPL mode, you cannot use import statements. Fallback to require().
You can run ESM modules manually in the terminal with the ESM switch on. Eg: $ node main.js
- You can directly install npm packages in the terminal.
- You can use log() instead of console.log().
- The lodash methods were preloaded, you can use it like _.isEmpty(value).