A small React project that provides a browser-based JavaScript code editor with a live preview (iframe).
npm install
npm run dev
Open the printed URL (usually http://localhost:5173)
- The preview runs user code inside a sandboxed iframe via
srcDoc(no node access). Use caution when running untrusted code. - This scaffold uses a simple textarea editor. Replace with CodeMirror or Monaco for a richer editor.