title: Update object state by using hooks
body: <p>I have a question about changing the value of a property within an object using Hooks, How do I do that ?</p>
  <pre><code>const [user, setUser] = useState({id: '', name: '', email: '', entries: 0, joined: ''})
  let count = 5;
  
  </code></pre>
  <p>And I would like to update the value of the property&quot;entries&quot;  with a variable &quot;count&quot;.</p>
  <p>How do I do that with setUser?</p>
  <p>Thanks</p>