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

> Combined with React Hooks (which replaced stateful classes with functional composition), the ecosystem shifted decisively toward FP.

React is the farthest thing from functional, see here: https://mckoder.medium.com/why-react-is-not-functional-b1ed1...

Composition in React Hooks is closer to multiple inheritance in C++ (because it combines state and behavior from multiple components) than functional programming.



+1 hooks are not functional at all and they are stateful, they can't even be properly unit tested.




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

Search: