7. Variable Attributes in JSX


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}/>;



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


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


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