We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 864b783 commit 143d871Copy full SHA for 143d871
src/exercise/06.md
@@ -18,7 +18,7 @@ call it like so:
18
function useCount({initialCount = 0, step = 1} = {}) {
19
React.useDebugValue({initialCount, step})
20
const [count, setCount] = React.useState(0)
21
- const increment = () => setCount(c => c + 1)
+ const increment = () => setCount(c => c + step)
22
return [count, increment]
23
}
24
```
@@ -69,7 +69,7 @@ const formatCountDebugValue = ({initialCount, step}) =>
69
70
React.useDebugValue({initialCount, step}, formatCountDebugValue)
71
72
73
74
75
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments