'accessing props.childern.props.childern returns unsafe any in typescript
I currently passing a component to my component as a prop within the interface I set it to theadChildren: JSX.Element;
Now I am trying to access the length of the of its children.
props.theadChildren.props.children.length
However I get Unsafe member access .children on an "any" value.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
