You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've had issues typing components that return array without Fragments like this:
Type '({ slides }: Props & { children?: ReactNode; }) => Element[]' is not assignable to type 'StatelessComponent<Props>'.
Type 'Element[]' is not assignable to type 'ReactElement<any>'.
Property 'type' is missing in type 'Element[]'.
@types/reactpackage and had problems.Definitions by:inindex.d.ts) so they can respond.I've had issues typing components that return array without Fragments like this:
If I wrap this in a Fragment, then it works: