andywer/use-inline-memo

deps default to []

Ouverte

#4 ouverte le 31 août 2019

 (4 commentaires) (0 réaction) (0 personne assignée)TypeScript (3 forks)github user discovery
enhancementhelp wantedquestion

Métriques du dépôt

Stars
 (164 étoiles)
Métriques de merge PR
 (Merge moyen 1j 2h) (2 PRs mergées en 30 j)

Description

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!

Guide contributeur