UNPKG

@kopexa/react-utils

Version:

A set of utilities for react on client side

10 lines (8 loc) 248 B
/** * Gets only the valid children of a component, * and ignores any nullish or falsy child. * * @param children the children */ declare function getValidChildren(children: React.ReactNode): React.ReactElement[]; export { getValidChildren };