3 ms·
They're not investing in OOP in any way. In fact, they're doing the opposite: deprecating proprietary pseudo-OOP `React.createClass` helper and let people use
by danabramov 12y ago
They're not investing in OOP in any way.
In fact, they're doing the opposite: deprecating proprietary pseudo-OOP `React.createClass` helper and let people use whatever they fancy. This makes it easier to write React components using idiomatic constructs from different languages, whether it is TypeScript, ClojureScript, CoffeeScript, or whatever. Also lets you use any mixin system, if you need it at all.
React's stance on inheritance: https://github.com/facebook/react/issues/613#issuecomment-29280175 https://github.com/facebook/react/issues/613#issuecomment-29...
“Minimal API surface area”: http://www.youtube.com/watch?v=4anAwXYqLG8 http://www.youtube.com/watch?v=4anAwXYqLG8