Skip to content

Commit

Permalink
Merge pull request #14 from mjadobson/patch-1
Browse files Browse the repository at this point in the history
Fix readme example typos
  • Loading branch information
ctrlplusb authored Nov 2, 2017
2 parents 7b10e9f + d33f2e7 commit 5951226
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import reactTreeWalker from 'react-tree-walker';
class Foo extends React.Component {
constructor(props) {
super(props);
this.getValue = this.getValue.bind(this);
this.getData = this.getData.bind(this);
}

getData() {
Expand Down Expand Up @@ -84,15 +84,15 @@ function visitor(element, instance, context) {
// prevent traversing "4"'s children
? false
: true
}
})
}
return true
};
}

reactTreeWalker(app, visitor);
reactTreeWalker(app, visitor).then(() => {
console.log(values); // [1, 2, 4, 3];
});

console.log(values); // [1, 2, 4, 3];
```

## FAQs
Expand Down

0 comments on commit 5951226

Please sign in to comment.