grommet / jsx-to-string

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

allow children to be null within jsx #4

Closed peter-mouland closed 8 years ago

peter-mouland commented 8 years ago

I hope this PR is ok with you? Let me know if you would like anything else added.

this is useful when components include code like :

 <Jsx>
  { boolean ? <MoreJsx /> : null }
</Jsx>

thanks

alansouzati commented 8 years ago

thanks for your contribution

peter-mouland commented 8 years ago

No problem, thanks for writing something that works 😄 Would you be able to do an npm release with the new version? Thanks again!

alansouzati commented 8 years ago

Sure thing, I've just released 0.2.11