In this file you will find some code snippets and examples of how to do certain things in React.
In the constructor for your component, you perform several important actions.
- Calling
super()orsuper(props)will call the parent class's constructor and is important for React.- Call
super(props)if your component has props, and should also be insideconstructor(props)in this case.
- Call
class App extends Component {
constructor() {