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

Shorthand for props #21236

Closed
behnammodi opened this issue Apr 11, 2021 · 2 comments
Closed

Shorthand for props #21236

behnammodi opened this issue Apr 11, 2021 · 2 comments
Labels
Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug

Comments

@behnammodi
Copy link
Contributor

Can we have a shorthand for props?
sometimes variable name and prop name is same like:

<Component name={name} />

So we can write shorthand mode:

<Component {name} />
@behnammodi behnammodi added the Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug label Apr 11, 2021
@bvaughn
Copy link
Contributor

bvaughn commented Apr 11, 2021

Shorthand attribute proposals have come up before: #9696, #9707, #13967, #15731, #20164

They get re-routed to the JSX repo, specifically: facebook/jsx#23

Going to close this issue and do the same. 😄

@bvaughn bvaughn closed this as completed Apr 11, 2021
@behnammodi
Copy link
Contributor Author

@bvaughn Thanks man 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug
Projects
None yet
Development

No branches or pull requests

2 participants