Skip to content

Commit ec34b44

Browse files
committed
Update README.md
1 parent 6bb1a6d commit ec34b44

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,14 @@ class MySortableList extends React.Component {
142142
handleMove(evt) { // Event when you move an item in the list or between lists
143143
}
144144
render() {
145+
const items = this.state.items.map((val, index) => (
146+
<li key={index}>{val}</li>
147+
));
148+
145149
return (
146-
<ul ref="list">{items}</ul>
150+
<div>
151+
<ul ref="list">{items}</ul>
152+
</div>
147153
);
148154
}
149155
}

0 commit comments

Comments
 (0)