forEach over es6 Map in JSX

后端 未结 4 2021
情深已故
情深已故 2021-02-19 02:22

I had a javascript array that was rendering components using array.map. I switched this array to an es6 Map in order to be able to use key-value pairs

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-19 02:32

    another option, where options is an es6 Map() ..

    
    

提交回复
热议问题