Skip to content

Commit

Permalink
Nitpicks for Section 1 (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjmacintosh authored Oct 19, 2024
1 parent 1675fb2 commit ef36c80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
πŸ‘¨β€πŸ’Ό We've got you working on a blog search page. Allow me to introduce you to
πŸ§β€β™‚οΈ Kellie the coworker who put this together.

πŸ§β€β™‚οΈ Hello! I'm Kellie the co-worker and I do things for you sometimes. I've
πŸ§β€β™‚οΈ Hello! I'm Kellie the coworker and I do things for you sometimes. I've
started up this app that you're going to be working with. There's a search
input, a couple checkboxes, a submit button, and a list of blog posts. You've
been asked to make it so when the user types into the search field it filters
Expand Down
4 changes: 3 additions & 1 deletion exercises/01.managing-ui-state/05.problem.cb/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ need it.
So

```tsx
// both of these work just fine:
// This will call getQueryParam on every render, undermining our optimization! 😡
const [query, setQuery] = useState(getQueryParam())

// This will _only_ call getQueryParam on init. Great! βœ…
const [query, setQuery] = useState(getQueryParam)
```

Expand Down

0 comments on commit ef36c80

Please sign in to comment.