I'm creating an page with ReactJS, but I have this question:
I did this code:
React.DOM.h2({}, 'Edit Store ',
React.DOM.span({}, ' (ID: ' + this.state.store.id + ')')
)
And the result is:
<h2>
<span>EDIT STORE</span>
<span> (id: 123456) </span>
</h2>
But what I want is:
<h2>
EDIT STORE
<span> (id: 123456) </span>
</h2>
How can I have the second result?
v('h2', 'Edit Store ', v('span', `(ID: ${this.state.store.id})`))<h2>Edit Store <span>(ID: {this.state.store.id} )</span></h2>in jsx