REACT map dictionary

 

Object.entries(obj).map(([key, value]) => (
    console.log(key);
    console.log(value);   
))

 

转载于:https://www.cnblogs.com/argenbarbie/p/8597373.html

你可能感兴趣的:(REACT map dictionary)