How to update react state object array
<p>I need to know how to update the array of users inside the state to accept a new user object.</p>

<p>The state users array contains id and name only.</p>

<p>When i try to use update addon to push an item in the users array.</p>

<pre><code>var newUser = {id:1, name:'Foo'};
let newState = update(this.state, {users: {$push: [newUser]}});
</code></pre>

<p>"react-dom.js:17858 Uncaught Error: Objects are not valid as a React child (found: object with keys {id, name}). If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons. Check the render method of <code>UsersTable</code>.(…)"</p>