forEach over es6 Map in JSX

后端 未结 4 2016
情深已故
情深已故 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:34

    Just a slight improvement on danday74's example using array destructuring. With options the ES6 Map:

    ;
    

提交回复
热议问题