본문으로 건너뛰기

Live Playground tests

Position bottom (default)

라이브 에디터
function Counter() {
  const [count, setCount] = React.useState(0);
  return (
    <div>
      <div>Count: {count}</div>
      <button onClick={() => setCount(count + 1)}>Increment</button>
    </div>
  );
}
결과
Loading...

Position top

결과
Loading...
라이브 에디터
function Counter() {
  const [count, setCount] = React.useState(0);
  return (
    <div>
      <div>Count: {count}</div>
      <button onClick={() => setCount(count + 1)}>Increment</button>
    </div>
  );
}