Need help 3/7


#1


var Friend=React.createClass({
  render : function () {
var friend=friends[1];
    
  return (
   <div>
        <h1> {friend.title} </h1>
      </div>
  );
}
})

 Friend's' <h1></h1> should contain {friend.title}.  -- the error i am getting


#2

found a solution
var friend=friends[1]; -- use friends[0]


#3

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