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

Feels like the author is someone who really sunk into the composed higher order component style of writing React. As someone who has coworkers who loved spreading logic into 'composable HoC' that only end up being reused 1-2x, I welcome hooks.

A single component wrapped by 3-4 HoC that each do trivial tasks always felt like mental strain rather than a helpful abstraction. My favorite was HoC's that added class component functionality to function components... just use a class.



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

Search: