grommet / jsx-to-string

Parse your React JSX component to string
MIT License
124 stars 26 forks source link

alternate boolean syntax #29

Closed afraser closed 7 years ago

afraser commented 7 years ago

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

eg:

<button />
<button disabled />

instead of

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

(respectively)

alansouzati commented 7 years ago

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

lucmerceron commented 7 years ago

Hello guys,

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

afraser commented 7 years ago

I have not. Go for it @lucmerceron!