Slide 4
Slide 4 text
JSXの中身は”Black box”
公式ドキュメントにも記載されている
By default the result of a JSX expression is typed as any. You can customize the type by
specifying the JSX.Element interface. However, it is not possible to retrieve type information
about the element, attributes or children of the JSX from this interface. It is a black box.
出典元:TypeScript - The JSX function return type
この前提とどう戦っていくか