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

It also makes types much easier to analyze (whether using, say, VSCode's inference or Typescript) when using hooks. With HOCs, types tended to get lost through the arbitrary amount of <Wrapped {...props} /> chains.


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

Search: