The displayed name for the component. It is overridable. It can also be set for function components.
Component state used to drive rendering.
Update it with setState() to trigger a re-render.
ProtectedcontextProtectedComponent context.
A unique identifier for the component instance. The key is immutable and can only be set when the component is declared.
Props passed into the component instance. Use it as read-only input when rendering.
A reference associated with the component to be used with useRef. Can be used to expose the component instance or an underlying DOM node.
Component context value. Use it to access shared data provided by an outer component/system.
Force the component to re-render even if no state/props change. Useful for imperative updates.
Update component state. Accepts a partial state (or a function returning partial state) and schedules a re-render.
to called after updates.
Staticget
ErrorBoundary component that catches errors in its child component tree and renders a fallback UI.
Param: props
Param: props.children
The component subtree to render and monitor for runtime errors.
Param: props.Fallback
UI to render when an error is caught. Receives two props:
error(the exception)reset(function to clear the error)Param: props.onError
Callback invoked on error with arguments
(error, info).