Skip to content

Commit

Permalink
update instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds committed Mar 13, 2024
1 parent 044af02 commit 9b70cd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exercises/02.side-effects/01.problem.effects/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The only way to be notified of a back/forward event is to listen for the
`popstate` event. You can do this by adding an event listener to the `window`
object.

```javascript
```tsx
window.addEventListener('popstate', () => {
// update the input value
})
Expand Down
2 changes: 1 addition & 1 deletion exercises/02.side-effects/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
after React renders (and re-renders) your component to the DOM. It accepts a
callback function which React will call after the DOM has been updated:

```javascript
```tsx
useEffect(() => {
// your side-effect code here.
// this is where you can interact with browser APIs for example
Expand Down

0 comments on commit 9b70cd2

Please sign in to comment.