3 ms·
> as I'm aware, the only "gotcha" of React.Component (vs other classes in JS) is that they shouldn't be extended. Facebook recommend composition over inheritan
by LinguaBrowse 6y ago
> as I'm aware, the only "gotcha" of React.Component (vs other classes in JS) is that they shouldn't be extended.
Facebook recommend composition over inheritance, but you can totally extend React.Component and even get abstract classes involved. In my custom React renderer, all the components in the library are based off React.Component class inheritance.
https://github.com/shirakaba/react-nativescript https://github.com/shirakaba/react-nativescript