๋ฉ”์ธ ์ปจํ…์ธ ๋กœ ์ด๋™

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>
  );
}