ReactNode typedef
ReactNode = Object?
A value that can be returned from a component's render, or used as children.
Possible values include:
- A
ReactElementsuch as a DOM element created usingreact.div({}), or a user-defined component. - A
ReactPortalcreated bycreatePortal. - A
Stringornum(Rendered as text nodes in the DOM). - Booleans or
null(Render nothing). - A list of, or a
ReactFragmentcontaining, any/all of the above.
Implementation
typedef ReactNode = Object?;