Object-oriented really? What happened then with the functional programming? :)
Vitalii Burlaka

Come on, this post is so misleading. React does not enforce object oriented style. But since JavaScript is an OO language, some OO stuff are hard to get rid of completely. Even though it looks like react is written in OO style, it is not. Use of classes and methods (which is not even “real” classes) does not necessarily make it OO. They only chose to go with ES6 classes deprecating React.createClass because ES6 classes is a feature at language level, so with it, the developer does not have to learn a new API, thereby reducing the API surface.

React completely focuses on composing high order components which is enabled by first class function (a functional programming trait). Also, inheritance is discouraged completely. I have never seen a good react app use inheritance.

Like what you read? Give Pratik Chaudhary a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.