Need help with ex 3/7


I did as instruction says, but I have this error:

Friend's' <h1></h1> should contain {friend.title}.

// New component class starts here:
var Friend = React.createClass({
  render: function () {
    var friend = friends[1];
    return (

Please, tell me what is wrong with my code?


Are you meant to be returning a string here?


yep, friends has string properties:

var friends = [
    title: "Yummmmmmm",
    src: ""
    title: "Hey Guys!  Wait Up!",
    src: ""
    title: "Yikes",
    src: ""


problem was here:

var friend = friends[1];

I changed index to 0 and 2 and passed the lesson, but when index I got error: Friend's' <h1></h1> should contain {friend.title}. Looks like a bug?


This has been brought up before. There may be a bug report on it that has not yet been reviewed. Glad you took the initiative to try other indexes. That is what others have done, as well, with the same success.


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