andywer / andywer/use-inline-memo
deps default to []
Offen
enhancement
help wanted
question
- Vorherrschende Sprache
- TypeScript
- Sterne
- 164
- Forks
- 3
- Ø Merge
- 17 Std. 56 Min.
- Gemergte PRs (30 T.)
- 2
Beschreibung
Awesome package. Seriously, it should be part of React core!
Suggestion:
Instead of:
`memo.textChange(event => setValue(event.target.value), [])`
accepts this:
`memo.textChange(event => setValue(event.target.value))`
Question: How can you measure that the overhead in memo is faster then a component rerender that justify the use of it?
Great work!
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.