Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Leverage JSX generics for Form and Field #521

Closed
smashercosmo opened this issue Jun 11, 2019 · 4 comments
Closed

Leverage JSX generics for Form and Field #521

smashercosmo opened this issue Jun 11, 2019 · 4 comments

Comments

@smashercosmo
Copy link

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?

@erikras
Copy link
Member

erikras commented Jun 11, 2019

  1. Anything like this for Flow?
  2. I'd definitely consider a PR for this.

@smashercosmo
Copy link
Author

Unfortunately Flow hasn't implemented support for JSX generics yet facebook/flow#7672

@smashercosmo
Copy link
Author

Closed via #522

@lock
Copy link

lock bot commented Jun 24, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 24, 2020
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants