Skip to content

Commit f96c92a

Browse files
Nitpicks for sections 2-6 (#242)
1 parent f343630 commit f96c92a

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

β€Žexercises/02.side-effects/01.problem.effects/README.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ full refresh of the page when the user clicks the back/forward button.
1010
πŸ§β€β™‚οΈ I added a new utility called `setGlobalSearchParams` which allows us to set
1111
the URL search params without triggering a full-page refresh. So whenever the
1212
user clicks "submit," we update the URL search params. The trouble is, when they
13-
hit the back button, the search doesn't stay synchronoized with the URL (yet).
13+
hit the back button, the search doesn't stay synchronized with the URL (yet).
1414

1515
You can take a look at <DiffLink app1={-1} app2={0}>my changes</DiffLink> for
1616
details on what I did.

β€Žexercises/02.side-effects/README.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ useEffect(() => {
2525
])
2626
```
2727

28-
`useState` is for managing our react component state and `useEffect` is for
29-
managing side-effects. Side-effects are things that happen outside our react
28+
`useState` is for managing our React component state and `useEffect` is for
29+
managing side-effects. Side-effects are things that happen outside our React
3030
components.
3131

32-
For example, things outside our react components include:
32+
For example, things outside our React components include:
3333

3434
- Browser APIs like local storage, geolocation, media devices, etc.
3535
- Integrations with third-party libraries like D3, Chart.js, etc.

β€Žexercises/03.lifting-state/01.problem.lift/README.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ to know what I've done. I pretty much just moved stuff into separate components
88
to get a little more organization in here.
99

1010
<callout-info>
11-
πŸ¦‰ check out [When to break up a component into multiple
11+
πŸ¦‰ Check out [When to break up a component into multiple
1212
components](https://kentcdodds.com/blog/when-to-break-up-a-component-into-multiple-components).
1313
</callout-info>
1414

β€Žexercises/06.tic-tac-toe/02.problem.local-storage/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const defaultState = Array(9).fill(null)
1111
// 🐨 create a variable for the key you'll use for storing the squares
1212
// πŸ’° 'squares' should work well.
1313
function Board() {
14-
// 🐨 use the callback form for useState the callback should:
14+
// 🐨 use the callback form for useState. The callback should:
1515
// 1. get the value from localStorage using the key you created above
1616
// 2. parse the JSON from that value
1717
// 3. return the parsed value (or the default value if there isn't one)

0 commit comments

Comments
Β (0)