Answers for "rendering an array inside an array in react"

0

rendering an array inside an array in react

list.map((item, index) => {
            return (
              <div key={index}>
                <ul >{item.value}</ul>
               {
                item.list.map((subitem, i) => {
                  return (
                     <ul ><li>{subitem.value}</li></ul>
                  )
                })
               }
              </div>
            )
          }
Posted by: Guest on April-18-2021

Code answers related to "rendering an array inside an array in react"

Code answers related to "Javascript"

Browse Popular Code Answers by Language