You never need classes in JavaScript, and I have never seen a situation where class is a better approach than the alternatives. If you can think of any, leave a comment
The Two Pillars of JavaScript
Eric Elliott
2.5K56

Hey. Have you encountered ReactJS already? API it is essentially nothing but classes, although they are called components. When you follow best practices, you never need to inherit from one of your components. All your components are simple descendants of a single Component class. It’s is composition in end of course, but classes definitely have got it’s reason there. Especially ES6 classes fits perfectly in there.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.