Online React Playground (JSX)
Write React components and see them live. Supports JSX and hooks (useState, useEffect...) - nothing to install.
Live preview
Console
console.log output appears here.
Your code runs only inside your own browser and is never sent to our server. Shortcut: Ctrl + Enter to run.
About the React compiler
Define a component named App and it is rendered in the preview on every run. React 18 and Babel run inside your browser.
How to use it
- Write or paste your React code in the editor.
- Press Run (or Ctrl + Enter).
- See the live preview and the console output below the editor.
Good to know
- Name the root component
App. UseReact.useStateor destructure fromReact. - Third-party npm libraries are not available.
Frequently asked questions
Yes. The React compiler is completely free. There is nothing to install and no sign-up is needed.
Type or paste your code in the editor and press the Run button (or Ctrl + Enter). The result appears right below the editor.
This is a live preview. Use form fields and buttons in your page for input.
Your code is kept in your own browser (local storage) so it is still there when you come back on the same device. It is not uploaded to your account. Use the Download button to keep a copy.
Yes. It is meant for learning, practising lab programs and quickly testing ideas. For exams and assignments follow your institution's rules.
More online compilers
Studying for AKTU?
Get notes, question banks and previous year papers for your subjects.
Find React notes