Skip to content

Leverage JSX generics for Form and Field #521

@smashercosmo

Description

@smashercosmo

Are you submitting a bug report or a feature request?

feature request

What is the current behavior?

Last release improved experience for TypeScript and Flow users. Now we can have typed Forms and Fields. But it can be improved even more at least for TS users if we leverage JSX generics which are supported by TypeScript. So instead of

const { Form } = withTypes<Types>()
<Form>...</Form>

we will simply

<Form<Types>>...</Form>

WDYT?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions