Skip to content

Commit c98b683

Browse files
committed
Use number for row key
1 parent a376f49 commit c98b683

File tree

1 file changed

+1
-1
lines changed
  • frameworks/keyed/rendrjs/src

1 file changed

+1
-1
lines changed

frameworks/keyed/rendrjs/src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ let App = () => {
118118
class: 'table table-hover table-striped test-data',
119119
slot: element('tbody', {
120120
slot: state.arr.map(item => component(Row, {
121-
key: `${item.id}`,
121+
key: item.id,
122122
item,
123123
hi: state.sel === item.id,
124124
set: setState,

0 commit comments

Comments
 (0)