Skip to content

Commit eceacac

Browse files
committed
Merge branch 'master' of github.com:danieldelcore/react-stable-ref
2 parents 1de8395 + 68b8224 commit eceacac

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Your stable reference utility library with everything you need to test, visualiz
2020

2121
## Motivation 🧠
2222

23-
I struggle with React hooks! It's not always obvious to me if i'm using hooks, such as `useEffect`, with unstable references, resulting in unnecessary rerenders. If left unchecked this could decrease the performance in your app, cause jank and ultimately degrade your user's experience 😭.
23+
I struggle with React hooks! It's not always obvious to me if i'm using unstable references with hooks such as `useEffect`. Unnecessary rerenders when left unchecked can decrease the performance of your app, cause jank and ultimately degrade your user's experience 😭.
2424

2525
Thankfully the React team have already thought about this and provide [lint rules to help](https://www.npmjs.com/package/eslint-plugin-react-hooks) 🥰. But what if you're passing objects and arrays into dependency arrays which are not 'deeply' compared?
2626
How can you know for sure? This is why I've put this library together...
@@ -108,6 +108,3 @@ Huge thank you to [Pablo Stanley](https://twitter.com/pablostanley) and contribu
108108
- [Making Sense of React Hooks](https://medium.com/@dan_abramov/making-sense-of-react-hooks-fdbde8803889)
109109
- [When to useMemo and useCallback](https://kentcdodds.com/blog/usememo-and-usecallback/)
110110

111-
```
112-
113-
```

0 commit comments

Comments
 (0)