8/16 I'm unclear of what I'm doing wrong. please help


#1


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

function makeDoggy (e) {
// Call this extremely useful function on an .
// The will become a picture of a doggy.
e.target.setAttribute('src', 'https://s3.amazonaws.com/codecademy-content/courses/React/react_photo-puppy.jpeg');
e.target.setAttribute('alt', 'doggy');
}

var kitty = (

src="https://s3.amazonaws.com/codecademy-content/courses/React/react_photo-kitty.jpg"
alt="kitty" />

);

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


Replace this line with your code.


#2

You should have those pictures in your ./images folder.

'./images/doggy.jpeg'

"./images/kitty.jpeg"

Without code sample formatting we cannot tell what else is a possible issue since the HTML component is unreadable.


#3

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