Need help on exercise 7


#1


https://www.codecademy.com/en/courses/react-101/lessons/react-jsx-advanced/exercises/jsx-variable-attributes?action=resume

I have the following error message,
After your variable declarations, make sure you start a new line with ReactDOM.render().


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

var goose = 'https://s3.amazonaws.com/codecademy-content/courses/React/react_photo-goose.jpg';

// Declare new variable here:
var gooseImg = <img src={goose} />;

ReactDOM.render = (gooseImg, document.getElementById('app'));


#2

Go back 3 lesson's and check your ReactDOM.render syntax :smiley:


#3

Thanks for the help i see it now :wink:


#4

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