Skip to content

[Question] Should we be using React.FunctionComponentElement type? #379

@devinrhode2

Description

@devinrhode2

I am just trying to figure out what's a good strategy for the return types of functional react components that return jsx. I'm not a fan of everything being typed as JSX.Element. I did find that React.FunctionComponentElement requires some generics to be passed in, which seems like it might be something we want to use, but not sure.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions