Hacker News new | ask | show | jobs
by cehrlich 1555 days 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”.