title: How to map an array which is inside another array in react js?
body: <p>I am new to react and I am having trouble finding a way to map an array within an array to display the username and id in the component. How can I achieve this? Is this a wrong approach?</p>
  <pre><code>[Array(4)]
          0: Array(4)
              0: {user: &quot;testuser1&quot;, id: &quot;2&quot;}
              1: {user: &quot;testuser2&quot;, id: &quot;3&quot;}
              2: {user: &quot;testuser3&quot;, id: &quot;4&quot;}
              3: {user: &quot;testuser4&quot;, id: &quot;5&quot;}
      length: 4
      __proto__: Array(0)
      length: 1
      __proto__: Array(0)
  </code></pre>
  <p>Thanks</p>