DEV Community

Discussion on: Tell us what your top unpopular tech opinion is 😈

Collapse
 
dwjohnston profile image
David Johnston

Maybe React is too complicated.

I think a lot of the appeal of React is how simple it looks at first, has this philosophy of declarative one way data-binding, where it's 'You just write a function and given those function parameters, then you return some JSX'.

Except with the introduction of hooks:

useState acts differently depending on if it's the first render or not
useEffect acts differently depending on if you added the second [] parameter or not.

All of a sudden it's not a simple 'I call this function, I get this stuff'.