Skip to content

Commit 83e7ace

Browse files
committed
Refactored the <ListWidget> markup to include a presently-unique 'key' prop for each list item, to prevent React from emitting warning complaining that such a prop is missing.
1 parent d835e40 commit 83e7ace

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

webpack_in/entry.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class ListWidget extends React.Component {
9292
<div style={ objStyleCommon }>
9393
<div style={ objStyleContent }>
9494
<ul style={{ display: 'inline-block' }}>
95-
{ this.state.items.map((strItem, index) => (<li>
95+
{ this.state.items.map((strItem, index) => (<li key={ index }>
9696
{ strItem }
9797
</li>)) }
9898
</ul>

0 commit comments

Comments
 (0)