Is your feature request related to a problem? Please describe.
Many components have type intersections in their props, like in the screenshot below:
Describe the solution you'd like
We could, and probably should (as we finally can!) use generics in the SFCs. Regarding this section of the Evan You's presentation we could use our existing components from the examples above in a more generic way shown below.
What are acceptance criteria?
The components don't have intersections in their props anymore and use generic which makes them more elegant, flexible, reusable and type-safe.
Is your feature request related to a problem? Please describe.
Many components have type intersections in their props, like in the screenshot below:
Describe the solution you'd like
We could, and probably should (as we finally can!) use
generics in the SFCs. Regarding this section of the Evan You's presentation we could use our existing components from the examples above in a more generic way shown below.What are acceptance criteria?
The components don't have intersections in their props anymore and use generic which makes them more elegant, flexible, reusable and type-safe.