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

To be fair - I mostly agree with that take. React with hooks is not functional. I think it's fair to say that React itself acknowledges this by making a distinction between a PureComponent and a Component.

React itself certainly can be functional, but... (hot take) functional programming without the part where you actually make state changes is - drumroll - useless.

If it ain't changing state and there are no side effects - no one gives a fuck. Because it literally isn't doing anything.

Turns out computers are fundamentally state machines. Functional programming certainly has some nifty ideas, and it can be a helpful way to reason about code that will lead to state changes - but the part people want is the state change.



Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: