logoalt Hacker News

mvdtnzyesterday at 2:38 AM1 replyview on HN

Really? So class components are still first class citizens and play well with existing ecosystem code?


Replies

esperentyesterday at 5:02 AM

> So class components are still first class citizens

Yes

https://react.dev/reference/react/Component

> play well with existing ecosystem code?

That's not something the React team has any control over so it feels like an unfair complaint.

However, besides external libraries that are specifically designed to work with hooks, I'd say quite a lot of things would still work. And you can always just use older versions of things, nobody is forcing you to upgrade.

Anyway, React has been using hooks for about 6 or 7 years now. Not quite the ten years claimed in the previous comment but not so far off either.

show 1 reply