When creating typed .tsx component that contain project default Link component, which contains children, there is an typescript error.
Steps To Reproduce
Create .tsx component.
Import default Link component.
Add some children into Link component.
Expected result
No error
Actual result
Type '{ children: Element; key: any; to: string; }' is not assignable to type 'IntrinsicAttributes & RefAttributes<any>'.
System Information (as applicable)
pwa-kit version:2.4.1"
Additional information
As I understand, react component must explicitly return children if it receives. But I do not know idea of the Link. Maybe creators originally conceived that Link should not receive any children. But I saw code above in PWA Web Kit and Managed Runtime: Developer Essentials. It did not throw error because it was .jsx. And, for example, Link from chakra receives children.
Summary
When creating typed .tsx component that contain project default Link component, which contains children, there is an typescript error.
Steps To Reproduce
Create .tsx component. Import default Link component. Add some children into Link component.
Expected result
No error
Actual result
Type '{ children: Element; key: any; to: string; }' is not assignable to type 'IntrinsicAttributes & RefAttributes<any>'.
System Information (as applicable)
pwa-kit version:2.4.1"
Additional information
As I understand, react component must explicitly return children if it receives. But I do not know idea of the Link. Maybe creators originally conceived that Link should not receive any children. But I saw code above in PWA Web Kit and Managed Runtime: Developer Essentials. It did not throw error because it was .jsx. And, for example, Link from chakra receives children.