DEV Community

Discussion on: Top 10 mistakes to avoid when using React

Collapse
larsejaas profile image
Lars Ejaas • Edited on

You might argue that using Class components could be no. 11. Of course there are edge cases, but I personally consider them obsolete in 2021...

Collapse
manikbajaj profile image
Manik

I agree with this, I was thinking of it after seeing examples of class based components and bang I see your comment 👍

Collapse
larsejaas profile image
Lars Ejaas

Well, I wasn't trying to offend anyone but I genuinely think we should stick to functional components going forward. However, I am sure a lot of developers maintain projects with lots of class components where it just decided not to refactor..