andywer/use-inline-memo

deps default to []

Aberta

#4 aberto em 31 de ago. de 2019

 (4 comentários) (0 reação) (0 responsável)TypeScript (3 forks)github user discovery
enhancementhelp wantedquestion

Métricas do repositório

Stars
 (164 estrelas)
Métricas de merge de PR
 (Mesclagem média 1d 2h) (2 fundiu PRs em 30d)

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!

Guia do colaborador