3 ms·
How does the existence of hooks preclude you from using function components without state (without any hooks)?
by PKop 7y ago
How does the existence of hooks preclude you from using function components without state (without any hooks)?
- ssalka 7y agoThey 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_
- s_y_n_t_a_x 7y agoIf 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.