title: Using map on an object in useState
body: <p>I created a person object in my useState, but I'm having trouble in using the <code>map</code> function on the person object. Any help is appreciated.</p>
  <pre class="lang-js prettyprint-override"><code> const [person, setPerson] = useState({
      name: &quot;Nick&quot;,
      age: 30,
      showPersons: true,
    });
  </code></pre>
  <p>Thanks in advance!</p>