setting the type of children typescript react code example Example: react children typescript interface Props { children: JSX.Element[] | JSX.Element }