Typescript: how to set type of children in React Component? Typescript: how to set type of children in React Component? typescript typescript

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).