Permalink
Browse files

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.
  • Loading branch information...
maratbn committed Jul 11, 2018
1 parent d835e40 commit 83e7ace269c356dbf293b7787775e1ccad7a3813
Showing with 1 addition and 1 deletion.
  1. +1 −1 webpack_in/entry.jsx
@@ -92,7 +92,7 @@ class ListWidget extends React.Component {
<div style={ objStyleCommon }>
<div style={ objStyleContent }>
<ul style={{ display: 'inline-block' }}>
{ this.state.items.map((strItem, index) => (<li>
{ this.state.items.map((strItem, index) => (<li key={ index }>
{ strItem }
</li>)) }
</ul>

0 comments on commit 83e7ace

Please sign in to comment.