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

I don’t think this criticism of hooks is valid. A hook that exposes a “incrementCounter” function could be implemented with local component state, or global state via React context. The developer could trivially swap in one implementation for another.


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

Search: