DEV Community

Discussion on: Do you still use React classes?

Collapse
 
myzel394 profile image
Myzel394

I don't use classes anymore because I want my code to be as modern as possible and I don't want to stay on the "old" technology, because 1) there would be no development in technology otherwise and 2) I wouldn't learn anything new.

Collapse
 
beggars profile image
Dwayne Charrington • Edited

Classes may not be a "modern" concept to React land, but classes are anything but unmodern. Classes are part of the ECMAScript specification, they are very much a real and implemented language-level feature. The React team spread a lot of dangerous and unsubstantiated rhetoric when they blamed classes for problems caused by their ineptitude.