Answers for "how to print an array inside another array in react"

0

how to print an array inside another array in react

return(
    <div>
      {Object.keys(data).map((key) => {
         return (
           <div key={key}>
              <h1>{key}</h1>
              {data[key].map((dataItem) => {
                return (
                 <span key={dataItem.user}>{dataItem.id}</span>
                )
               })}
           </div>
         )
       })}
     </div>
   )
Posted by: Guest on September-12-2021

Code answers related to "how to print an array inside another array in react"

Code answers related to "Javascript"

Browse Popular Code Answers by Language