Skip to content

Commit b5f5374

Browse files
committed
Merge branch 'update-rendrjs-version' of https://github.com/twharmon/js-framework-benchmark into twharmon-update-rendrjs-version
2 parents 0c9c3b0 + a49f5b5 commit b5f5374

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

frameworks/keyed/rendrjs/src/main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,12 @@ let App = () => {
117117
element('table', {
118118
class: 'table table-hover table-striped test-data',
119119
slot: element('tbody', {
120-
slot: state.arr.map(({ id, label }) => component(Row, {
121-
key: `${id}`,
120+
slot: state.arr.map(item => component(Row, {
121+
key: `${item.id}`,
122122
item,
123-
hi: state.sel === id,
123+
hi: state.sel === item.id,
124124
set: setState,
125-
memo: [id === state.sel, label],
125+
memo: [item.id === state.sel, item.label],
126126
})),
127127
}),
128128
}),

0 commit comments

Comments
 (0)