ウェブエンジニア問題集

次のコンポーネントのボタンをクリックしたとき、画面に表示されるカウントの挙動として正しいものはどれですか? <pre><code>function Counter() { const count = useRef(0); return ( <button onClick={() => { count.current++; console.log(count.current); }}> count: {count.current} </button> ); }</code></pre>