title: Mapping by Object Key Returns 0?
body: <p>I am updating a state to get all the keys from an object called &quot;&quot;types&quot; in separate buttons, but I only got a 0:</p>
  <pre><code>{Object.keys(types).map((key) =&gt; &lt;button&gt;{key}&lt;/button&gt;)}
  </code></pre>
  <p>Or all the keys in the same button: </p>
  <pre><code>{types.map(types=&gt; &lt;button&gt;{Object.keys(types)}&lt;/button&gt;)}
  </code></pre>
  <p>Why?</p>
  <p><a href="https://i.stack.imgur.com/vUwya.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vUwya.png" alt="enter image description here" /></a></p>