antd key报错 Each child in a list should have a unique “key“ prop

使用 react + antd 组件时,有时会报出 Each child in a list should have a unique "key" prop. 这样的错误

这里列举几个相关的次错误报错和解决方式

1、Table 表格
  官方给 Table 组件提供了一个 rowKey 属性,用于给表格的每一行设定一个 key 值
  如:

columns.id} />
2、Select 选择器 中的 Option
  使用 map() 方法动态添加选项,也需要给