Stuck Advanced JSX part 5/16

why the error ???

var math = (
    <h1>2 + 3 = 2 + 3</h1>

like all true test written

The same. Can’t figure out the problem.

Can you guys post which error you’re getting? Also, I’m going to assume you’re talking about Instructions 1 right?

Just figured out the problem. I implemented the code in the wrong file. Need to go to the app.js

1 Like

can someone tell me what wrong with this code? I can’t get it work.

var React = require(‘react’);
var ReactDOM = require(‘react-dom’);

// Write code here:
var math = (

2 + 3 = {2 + 3}


ReactDOM.render(math, document.getElementById(‘app’));

never mind, I got it works.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.