Skip to content

Function isEmpty() ​

isEmpty(node: ReactNode): boolean

Source: react.utils.ts

Statically checks whether the given ReactNode contains no renderable content, without actually rendering it.

Parameters ​

node ​

ReactNode

The node to check.

Returns ​

boolean

true if there is no renderable child.

Built by Prozilla