Re:React I love you, but you're bringing me down
by ncann on Tuesday September 20, 2022 @12:39PM
(#32914263)
Class component is still fully working as of latest React and won't be going away (at least according to the React docs). The main issue is when you work on a codebase that's full of function components and hooks it's hard to mix in class components.
[ Parent
| on HN ]
Re:React I love you, but you're bringing me down
by reactspa on Sunday September 25, 2022 @12:45AM
(#32969008)
I really liked the old model where Class Components were used when there was state, and function components were used when there was no state.
Hooks have always seemed so weird. And turns out it's the same for many others.