andywer/use-inline-memo

deps default to []

开放

#4 创建于 2019年8月31日

 (4 条评论) (0 个反应) (0 位负责人)TypeScript (3 个派生)github user discovery
enhancementhelp wantedquestion

仓库指标

星标
 (164 个星标)
PR 合并指标
 (平均合并 1天 2小时) (30 天内合并 2 个 PR)

描述

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!

贡献者指南