Traverse the double-layer array in the jsx grammar, and the contents of each layer have to be rendered.

clipboard.png

clipboard.png
how to do this

Mar.10,2021

map twice,

fil.map(f=>
    <div>
        {f.child.map(c=><div></div>)}
    </div>

filtrateFields.map((item,i) =>{
     return(
     <div key={i}>
     {item.name}
     </div>
     )
     item.map((list,k) =>{
       return(
       <div key={k}>
       {list.name}
       </div>
       )
     })
})
Menu