andywer / andywer/use-inline-memo

deps default to []

Đang mở
#4 4 bình luận 0 reaction 0 người được giao Xem trên GitHub
enhancement help wanted question
Ngôn ngữ chính
TypeScript
Star
164
Fork
3
Merge trung bình
17 giờ 56 phút
Pull request đã merge (30 ngày)
2

Mô tả

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!

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.