andywer/use-inline-memo

deps default to []

Aperta

#4 aperta il 31 ago 2019

 (4 commenti) (0 reazioni) (0 assegnatari)TypeScript (3 fork)github user discovery
enhancementhelp wantedquestion

Metriche repository

Star
 (164 stelle)
Metriche merge PR
 (Merge medio 1g 2h) (2 PR mergiate in 30 g)

Descrizione

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!

Guida contributor