typescript props children code example
Example 1: react children typescript
interface Props {
children: JSX.Element[] | JSX.Element
}
Example 2: react native typescript children prop
interface Props {
children: React.ReactNode;
}
interface Props {
children: JSX.Element[] | JSX.Element
}
interface Props {
children: React.ReactNode;
}