Error in React part 1,Advanced JSX (2/16)


#1


I'm stuck in this exercise because the instructions do not match the code snippet given.


The link to the exercise is :
https://www.codecademy.com/en/courses/react-101/lessons/react-jsx-advanced/exercises/self-closing-tags

The instructions are as follows:
In app.js, fix the broken JSX by adding slashes to all of the self-closing tags.


Below is the given code snippet.

var React = require('react');
var ReactDOM = require('react-dom');

// Write code here:
var myDiv = <div className="big">I AM A BIG DIV</div>
ReactDOM.render(myDiv,document.getElementById('app'));


Instructions don't match the code snippet and when I try to run the code it gives an irrelevant error which is as follows
[Error] Did you add the currency filter to the price?


#2

did you include a slash to the self-closing tag of the IMG? not just the breaks


#3

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