getInitialState method

S getInitialState ()

getInitialState returns the default state for the component. It will be called before componentWillMount. It returns a default of null.

Implementation

S getInitialState() => null;