react错误一:react.development.js:372 Warning: Each child in an array or iterator should have a unique "
错误代码:
const numbers = [1,2,3,4,5];
const listItems = numbers.map(item => <li>{item}</li>)
ReactDOM.render(
<ul>{listItems}<...
原创
2019-11-05 11:40:41 ·
1053 阅读 ·
0 评论