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 2c9950a commit fadae75Copy full SHA for fadae75
exercises/06.tic-tac-toe/02.problem.local-storage/index.tsx
@@ -11,7 +11,7 @@ const defaultState = Array(9).fill(null)
11
// 🐨 create a variable for the key you'll use for storing the squares
12
// 💰 'squares' should work well.
13
function Board() {
14
- // 🐨 use the callback form for useState the callback should:
+ // 🐨 use the callback form for useState. The callback should:
15
// 1. get the value from localStorage using the key you created above
16
// 2. parse the JSON from that value
17
// 3. return the parsed value (or the default value if there isn't one)
0 commit comments