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'.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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 notuseEffect
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'.