News for hackers. Stuff that matters.
Re:React I love you, but you're bringing me down by reactspa on Tuesday September 20, 2022 @12:35PM (#32914190)
Is it possible to continue coding in some early version of React that only had class components?

Has anyone branched that into its own thing yet?

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.
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.