React Playground

Multi-file React playground with hot reload and npm packages.

Frontend
import React, { useState } from 'react';

export default function App() {
  const [n, setN] = useState(0);
  return (
    <div style={{ fontFamily: 'system-ui', padding: 24 }}>
      <h1>Hello React 18</h1>
      <p>Count: {n}</p>
      <button onClick={() => setN(n + 1)}>Add one</button>
    </div>
  );
}

About this playground

Build and share React components instantly. Supports JSX, hooks, multiple files, and importing any npm package via CDN.

Related Playground Tools