javascript – Console is throwing Unterminated JSX contents error

javascript – Console is throwing Unterminated JSX contents error

You have 2 unclosed <div> tags in your render() and a semicolon that probably doesnt belong. Id get rid of those (e.g. close them, delete the semicolon in <div>; if it doesnt belong) and try it again.

Give / in closing div element and remove semicolon(;) after div element.

import React from react;

export default React.createClass({
displayName: MainComponent,
propTypes: {
    item: React.PropTypes.object
},
render: function render() {
    return (
        <div class=builder-conteiner>

        </div>
    );
}
});

React.render(<MainComponent />, document.getElementById(app))

javascript – Console is throwing Unterminated JSX contents error

Leave a Reply

Your email address will not be published.