I just updated to react 18. And from the docs it says that children prop need to be explicitly defined when listing props. I got the error below:
Type '{ children: (ReactNode | Element)[]; pullDownContent: Element; releaseContent: Element; refreshContent: Element; pullDownThreshold: number; onRefresh: () => Promise<...>; triggerHeight: number; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly'.
Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly'.ts(2322)
I just updated to react 18. And from the docs it says that children prop need to be explicitly defined when listing props. I got the error below:
Type '{ children: (ReactNode | Element)[]; pullDownContent: Element; releaseContent: Element; refreshContent: Element; pullDownThreshold: number; onRefresh: () => Promise<...>; triggerHeight: number; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly'.
Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes & Readonly'.ts(2322)