Skip to content

[FEAT] Refactor existing components props intersections to generics #449

@AlanLes

Description

@AlanLes

Is your feature request related to a problem? Please describe.

Many components have type intersections in their props, like in the screenshot below:

image image

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.

image image

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions