Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[Proposal] allow shorthand props #22179

Closed
fiskpatte opened this issue Aug 26, 2021 · 2 comments
Closed

[Proposal] allow shorthand props #22179

fiskpatte opened this issue Aug 26, 2021 · 2 comments

Comments

@fiskpatte
Copy link

I do this all the time:

<ComponentName propA={propA} propB={propB} propC={propC} />

and would love to do

<ComponentName propA propB propC />

It currently only works with boolean values.
Can it be fixed for all?

@anshul2807
Copy link

well I try to fix this...

@bvaughn
Copy link
Contributor

bvaughn commented Aug 26, 2021

This has been proposed a few times: #9696, #9707, #13967, #15731, #20164, #21236, #22039

The place to request/suggest this is the JSX repo though, specifically: facebook/jsx#23

I'm going to close this issue and suggest you join the discussion on that one. 👍🏼

@bvaughn bvaughn closed this as completed Aug 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants