Skip to content

Commit

Permalink
fix: typo (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsparkdev authored Nov 9, 2024
1 parent c66f992 commit 4297fd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/06.rerenders/02.problem.comparator/README.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const Avatar = memo(
prevProps.user.avatarUrl === nextProps.user.avatarUrl
const nameUnchanged = prevProps.user.name === nextProps.user.name
// return true if we don't want to re-render
return avatarUnchanged || nameUnchanged
return avatarUnchanged && nameUnchanged
},
)
```
Expand Down

0 comments on commit 4297fd6

Please sign in to comment.