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

alternate boolean syntax #29

Closed
afraser opened this issue Nov 14, 2017 · 3 comments
Closed

alternate boolean syntax #29

afraser opened this issue Nov 14, 2017 · 3 comments

Comments

@afraser
Copy link

afraser commented Nov 14, 2017

I'd love to see support for omitting boolean values:

eg:

<button />
<button disabled />

instead of

<button disabled={false} />
<button disabled={true} />

(respectively)

@alansouzati
Copy link
Collaborator

alansouzati commented Nov 14, 2017

great request. are you up for a pull request on that feature?
I can this as an option, maybe shortBooleanProp: true.

@lucmerceron
Copy link
Contributor

Hello guys,

I could do that if @afraser did not begin to work on it :)

@afraser
Copy link
Author

afraser commented Nov 14, 2017

I have not. Go for it @lucmerceron!

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