-
Notifications
You must be signed in to change notification settings - Fork 472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What's the purpose of making an App
class a subclass of a Component
#17
Comments
@rvpyrv I know |
@grundmanise Agreed. I don't see why you would need to make App a component. The old example does not do it - indeed it has a comment that it is not a component. |
It's to have access to the React lifecycle methods, in this case |
Also
So to be React.Component, class should implement |
First of all thank you for the great bootstrap example!
Have few questions:
App
class a subclass of aComponent
i.e.class App extends Component
?new App();
to a constconst app = new App();
?The text was updated successfully, but these errors were encountered: