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

Arrows create a brand new function on each render call. Say you have a pure component that you pass an onChange handler. If it’s an arrow function, the component needs to re-render as you created a new function. If it’s a pre bound function reference, the sub component will not receive any prop changes.

Otherwise, yeah.



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

Search: