Skip to content

Commit 47e4136

Browse files
author
Michael Gray
committed
Bugfixes for filterList method.
1 parent 417f129 commit 47e4136

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

01-Fundamentals/06-unidirectional-data-flow.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
https://scotch.io/tutorials/learning-react-getting-started-and-concepts#unidirectional-data-flow
2929
*/
3030
var FilteredList = React.createClass({
31-
filterList: (event) =>{
31+
filterList: function (event) {
3232
var updatedList = this.state.initialItems;
33-
updatedList = updatedList.filter item => {
33+
updatedList = updatedList.filter(item => {
3434
return item.toLowerCase().search(
3535
event.target.value.toLowerCase()) !== -1;
3636
});

0 commit comments

Comments
 (0)