<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>
https://www.codecademy.com/en/courses/react-101/lessons/react-components-advanced-jsx/exercises/render-function-calculations
Hi ! I'm stuck at this exercise : 3. Put Logic in a Render Function with instruction 2
There is no error message and I'm pretty sure I'm right.
This is my code :
```
var Friend = React.createClass({
render: funtion () {
return (
);
}
});
<do not remove the three backticks above>
Help ! Thanks !
I’ve just reset the exercise and pasted my working code, and It said I was wrong on the second point.
I then commented out the code and went through it step by step, without changing anything. And it’s now working.
So i think it’s just a bit temperamental about what it accepts. Here is my code:
var Friend = React.createClass({
render: function(){
var friend = friends[0];
return (<div><h1>{friend.title}</h1>
<img src={friend.src} /></div>)
}
})
ReactDOM.render(<Friend/>,document.getElementById('app'))
I meant Restart the exercise. (not reset). You can do this by clicking of Get Help (Bottom Right coner of your browser) and then choose I want to restart the exercise
thanks,
Thank you so much! I was stuck on this for nearly two days. Seems codecademy is being fickle - I had the same code, but I had to format it in the exact way you did.