3 ms·
It’s a difficult situation. A new React project should obviously use functional components and hooks. But there are still large code bases that use class based
by cehrlich 5y ago
It’s a difficult situation. A new React project should obviously use functional components and hooks. But there are still large code bases that use class based components, and I don’t see that changing too soon, so it needs to be taught.
Imo the docs/guide should include all the old stuff, but at the end and with a big warning saying “here’s the legacy stuff”.