If using the new style context, re-declare this in your class to be the
React.ContextType of your static contextType.
Should be used with type annotation or static contextType.
StaticcontextIf set, this.context will be set at runtime to the current value of the given Context.
StaticdefaultCalled immediately after a component is mounted. Setting state here will trigger re-rendering.
Called to determine whether the change in props and state should trigger a re-render.
Component always returns true.
PureComponent implements a shallow comparison on props and state and returns true if any
props or states have changed.
If false is returned, Component.render, componentWillUpdate
and componentDidUpdate will not be called.
Renderers