getInitialState method
- @override
- @mustCallSuper
- @Deprecated('Only supported in the deprecated Component, and not in Component2. See doc comment for more info.')
inherited
Invoked once before the Component
is mounted. The return value will be used as the initial value of state
.
See: reactjs.org/docs/react-component.html#getinitialstate
DEPRECATED - DO NOT USE
Use the
initialState
getter instead.
Implementation
@override
@mustCallSuper
@Deprecated('Only supported in the deprecated Component, and not in Component2. See doc comment for more info.')
Map getInitialState() => throw _unsupportedLifecycleError('getInitialState');