Re:Frustrations with React Hooks
by ssalka on Tuesday September 10, 2019 @03:12PM
(#20932234)
They don't, but before I could look at a function component and go "ah, a nice stateless component" whereas now I have to wonder whether the _function_ contains _state_
[ Parent
| on HN ]
Re:Frustrations with React Hooks
by s_y_n_t_a_x on Tuesday September 10, 2019 @03:22PM
(#20932400)
If you see "useWhatever"... then it has a hook.
And you already have to wonder if a function has state if you didn't write it. If you did, you should know.