Skip to main content

Live Playground tests

Position bottom (default)

Live Editor
function Counter() {
  const [count, setCount] = React.useState(0);
  return (
    <div>
      <div>Count: {count}</div>
      <button onClick={() => setCount(count + 1)}>Increment</button>
    </div>
  );
}
Result
Loading...

Position top

Result
Loading...
Live Editor
function Counter() {
  const [count, setCount] = React.useState(0);
  return (
    <div>
      <div>Count: {count}</div>
      <button onClick={() => setCount(count + 1)}>Increment</button>
    </div>
  );
}