Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Not in this example, no. There's zero benefit to memoizing a callback that's passed to a "leaf/host" element like a `<button`>

See my extensive post "A (Mostly) Complete Guide to React Rendering) for details:

https://blog.isquaredsoftware.com/2020/05/blogged-answers-a-...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: