andywer/use-inline-memo

deps default to []

Open

#4 opened on Aug 31, 2019

 (4 comments) (0 reactions) (0 assignees)TypeScript (3 forks)github user discovery
enhancementhelp wantedquestion

Repository metrics

Stars
 (164 stars)
PR merge metrics
 (Avg merge 1d 2h) (2 merged PRs in 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!

Contributor guide