andywer / andywer/use-inline-memo

deps default to []

Aperta
#4 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement help wanted question
Lingua principale
TypeScript
Stelle
164
Fork
3
Merge medio
17h 56m
PR unite (30g)
2

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 per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.