Typescript: how to set type of children in React Component?
set type of children in React Component?
Can't be narrowed with a type annotation (its all JSX.Element). Can be done with runtime introspection (type
property of each child).
set type of children in React Component?
Can't be narrowed with a type annotation (its all JSX.Element). Can be done with runtime introspection (type
property of each child).