andywer / andywer/use-inline-memo

deps default to []

未关闭
#4 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement help wanted question
主要语言
TypeScript
星标
164
派生
3
平均合并
17 小时 56 分钟
30 天内合并 PR
2

描述

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!

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。