React component returning cannot read property '__reactInternalInstance$ of null after trying to access array
问题 Here is the problematic component in question. const UserList = React.createClass({ render: function(){ let theList; if(this.props.data){ theList=this.props.data.map(function(user, pos){ return ( <div className="row user"> <div className="col-xs-1">{pos}</div> <div className="col-xs-5">{user.username}</div> <div className="col-xs-3">{user.recent}</div> <div className="col-xs-3">{user.alltime}</div> </div> ); }, this); } else { theList = <div>I don't know anymore</div>; } console.log(theList);