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