Understanding unique keys for array children in React.js

后端 未结 12 1334
时光取名叫无心
时光取名叫无心 2020-11-21 05:45

I\'m building a React component that accepts a JSON data source and creates a sortable table.
Each of the dynamic data rows has a unique key assigned to it but I\'m stil

12条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-21 06:28

    Just add the unique key to the your Components

    data.map((marker)=>{
        return(
            
        );
    })
    

提交回复
热议问题