0

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?

4

1 Answer 1

0

I Changed the version of react and react-dom, like Nick Tomlin suggered me, and worked perfect

"react": "^15.0.1",
"react-dom": "^15.0.1",
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.