bitburner-src/markdown/bitburner.reactnode.md

946 B

Home > bitburner > ReactNode

ReactNode type

A stand-in for the real React.ReactNode. A ReactElement is rendered dynamically with React. number and string are displayed directly. boolean, null, and undefined are ignored and not rendered. An array of ReactNodes will display all members of that array sequentially.

Use React.createElement to make the ReactElement type, see creating an element without jsx from the official React documentation.

Signature:

type ReactNode = ReactElement | string | number | null | undefined | boolean | ReactNode[];

References: ReactElement, ReactNode