-
Notifications
You must be signed in to change notification settings - Fork 19
Open
Labels
Description
I was trying to include Feature for my tsx file; however, my code editor shows me a typing error.
code:
<Feature
name="country"
inactiveComponent={<Loading />}
activeComponent={<Loading />}
/>
Error:
No overload matches this call.
Overload 1 of 2, '(props: { children: (args: { features: FeatureNames; }) => Element; }): Element', gave the following error.
Type '{ name: string; inactiveComponent: Element; activeComponent: Element; }' is not assignable to type 'IntrinsicAttributes & { children: (args: { features: FeatureNames; }) => Element; }'.
Property 'name' does not exist on type 'IntrinsicAttributes & { children: (args: { features: FeatureNames; }) => Element; }'.
gesabehrends