一跟着网上做react项目时,代码中以下代码:
import { HashRouter, Route, Switch, Redirect } from 'react-router-dom'
出现了以下俩个报错:
export 'Switch' (imported as 'Switch') was not found in 'react-router-dom'
export 'Redirect' (imported as 'Redirect') was not found
错误信息:
1.设置rowKey属性,也未设置columns属性的配置中第一列的key(react所需)
Warning: Each record in dataSource of table should have a unique `key` prop, or set `rowKey` to an unique primary key
Warning:[antd:Table] Each record in dataSource of table should have a un