7. Variable Attributes in JSX


#1


I don't know whats wrong i used same syntax as always.......error says
ReactDOM.render's second argument should be document.getElementById('app').


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

It should be document.getElementById('app') small G.


#3

lol...what a douche i am
thx :stuck_out_tongue:


#4

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