ReactNode

The TypeScript type for anything React can render: elements, strings, numbers, arrays of these, null, undefined or booleans.

In more detail

Props such as children and named slots are usually typed as ReactNode so callers can pass any renderable content. It comes from the @types/react type definitions.

Example

children: React.ReactNode

Related terms

Taught in

References