Closed MohaElder closed 2 years ago
It seems that in newer versions of React(e.g: 18.x.x), you need to use PropsWithChildren to wrap your function or else there will be Property 'children' does not exist on type 'IntrinsicAttributes & Props' error.
PropsWithChildren
Property 'children' does not exist on type 'IntrinsicAttributes & Props'
reference: Answer from StackOverflow
It seems that in newer versions of React(e.g: 18.x.x), you need to use
PropsWithChildren
to wrap your function or else there will beProperty 'children' does not exist on type 'IntrinsicAttributes & Props'
error.reference: Answer from StackOverflow