Do companys still use a class or only Hooks in ReactJS

I am starting to learn more about Reactjs
Now im starting to learn Hooks and I see how much better it is than the
normaal class

So I was wondering if companys still use class or just hooks only
I was looking on websites like Indeed and I was searching on google but could not really
find the answer.

So I am curious what the experts here using ReactJS think about this.

Every company is different. On my job we mainly use FCs and hooks, but there is still a lot of legacy code using classes.

My prediction is that classes will become less and less common in new code. But there will still be a lot of legacy code that uses classes for quite some time. If you want to be a React developer, you have to understand both.

3 Likes

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.