Fix typo in prevent-rerenders-with-use-shallow.md (#2364)

This commit is contained in:
Carsten Dietzel 2024-02-28 16:08:07 +01:00 committed by GitHub
parent 3c6dc2d12b
commit 827d5aacaf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -39,7 +39,7 @@ useMeals.setState({
}) })
``` ```
This change causes `BearNames` rerenders even tho the actual output of `names` has not changed according to shallow equal. This change causes `BearNames` rerenders even though the actual output of `names` has not changed according to shallow equal.
We can fix that using `useShallow`! We can fix that using `useShallow`!