Closed JamesKyburz closed 8 years ago
In react you can use the spread operator like so
<Element {...this.props} />
Unfortunately
hx`<Element ${...this.props} />`
isn't valid... However I propose
hx`<Element ${this.props} />`
As no key is given this can be handled in the parse which this pull request handles (hopefully in an ok way)
I have written two tests for this new functionality.
This looks great, thanks! I was thinking of implementing the same feature I just hadn't gotten around to it.
I've added you as a maintainer in the spirit of open open source.
:) Great thx!
In react you can use the spread operator like so
Unfortunately
isn't valid... However I propose
As no key is given this can be handled in the parse which this pull request handles (hopefully in an ok way)
I have written two tests for this new functionality.