-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Description
In " Typing Component Props " under " Useful React Prop Type Examples " , example given for children Element as props ( JSX.Element
) is incorrect it produce errors in new versions , instead React.ReactElement
is suggested method to use .
In " Functional Components " under 3rd example also the JSX.Element
is used instead React.ReactElement
must be there .
I came across this error and it took me two days to figure this out in my code .
So I don't want someone else to run in the same problem .


Metadata
Metadata
Assignees
Labels
No labels