Skip to content

Commit fd53d37

Browse files
committed
fix(example): warning key list is integer
1 parent 239e811 commit fd53d37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Example/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default class App extends Component {
1717
super(props);
1818
let data = [];
1919
for (var i = 0; i < 10; i++) {
20-
data.push({key: i, value: Math.floor(Math.random() * 100) + 1});
20+
data.push({key: String(i), value: Math.floor(Math.random() * 100) + 1});
2121
}
2222
this.state = {
2323
value: 1,

0 commit comments

Comments
 (0)