Methods
Optional UNSAFE_componentWillMount
UNSAFE_componentWillMount:
Optional UNSAFE_componentWillReceiveProps
UNSAFE_componentWillReceiveProps:
Optional UNSAFE_componentWillUpdate
UNSAFE_componentWillUpdate:
Optional componentDidCatch
componentDidCatch:
Optional componentDidMount
componentDidMount:
Optional componentDidUpdate
componentDidUpdate:
Optional componentWillMount
componentWillMount:
Optional componentWillReceiveProps
componentWillReceiveProps:
Optional componentWillUnmount
componentWillUnmount:
Optional componentWillUpdate
componentWillUpdate:
forceUpdate
forceUpdate( callback?: ( ) => void ) : void
Defined in node_modules/@types/react/index.d.ts:490
Parameters
Optional callback: ( ) => void
Returns void
Optional getSnapshotBeforeUpdate
getSnapshotBeforeUpdate:
render
render( ) : DetailedReactHTMLElement < InputHTMLAttributes < HTMLInputElement > , HTMLInputElement >
Returns DetailedReactHTMLElement < InputHTMLAttributes < HTMLInputElement > , HTMLInputElement >
setState
setState<K>( state: null | {} | ( ( prevState: Readonly < {} > , props: Readonly < IConnectProps < StateProps , FunctionProps , OwnProps > > ) => null | {} | Pick < {} , K > ) | Pick < {} , K > , callback?: ( ) => void ) : void
Defined in node_modules/@types/react/index.d.ts:485
Type parameters
Parameters
state: null | {} | ( ( prevState: Readonly < {} > , props: Readonly < IConnectProps < StateProps , FunctionProps , OwnProps > > ) => null | {} | Pick < {} , K > ) | Pick < {} , K >
Optional callback: ( ) => void
Returns void
shouldComponentUpdate
shouldComponentUpdate( nextProps: IConnectProps < StateProps , FunctionProps , OwnProps > ) : boolean
Parameters
Returns boolean
If using the new style context, re-declare this in your class to be the
React.ContextType
of yourstatic contextType
. Should be used with type annotation or static contextType.https://reactjs.org/docs/context.html