Skip to content

Commit 4297fd6

Browse files
authored
fix: typo (#132)
1 parent c66f992 commit 4297fd6

File tree

1 file changed

+1
-1
lines changed
  • exercises/06.rerenders/02.problem.comparator

1 file changed

+1
-1
lines changed

exercises/06.rerenders/02.problem.comparator/README.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const Avatar = memo(
2424
prevProps.user.avatarUrl === nextProps.user.avatarUrl
2525
const nameUnchanged = prevProps.user.name === nextProps.user.name
2626
// return true if we don't want to re-render
27-
return avatarUnchanged || nameUnchanged
27+
return avatarUnchanged && nameUnchanged
2828
},
2929
)
3030
```

0 commit comments

Comments
 (0)