4 ms·
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?
by reactspa 4y ago
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?
- ncann 4y agoClass 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.
- reactspa 4y agoI 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.