StephenGrider / AdvancedReduxCode

MIT License
839 stars 573 forks source link

KEY into userList #2

Open sandiiarov opened 8 years ago

sandiiarov commented 8 years ago

You forgot to add a unique "key" prop to the component. Here - AdvancedReduxCode/middlewares/src/components/user_list.js

  renderUser(user) {
    return (
      <div className="card card-block" **key** >
        <h4 className="card-title">{user.name}</h4>
        <p className="card-text">{user.company.name}</p>
        <a className="btn btn-primary" href={user.website}>Website</a>
      </div>
    );