What exactly is a simple component versus a complex component
- Simple components have no state
- Complex components have states
Initialize the state
- In the constructor of the component class
- Pass the props parameter to the constructor. React automatically passes this parameter to us.
- Call super ()
- Initialize the state
- Here this refers to the instance object of the component