Skip to content

Commit f048f46

Browse files
authored
Merge pull request talkpython#2 from audiolion/patch-1
fix: use class method since the constructor is binding
2 parents e3a5d02 + ec6ca50 commit f048f46

File tree

1 file changed

+1
-1
lines changed
  • days/041-044-react/demo/tips/src

1 file changed

+1
-1
lines changed

days/041-044-react/demo/tips/src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class App extends Component {
7878
})
7979
}
8080

81-
filterTips = (filterStr) => {
81+
filterTips(filterStr){
8282
let tips = []
8383
for(const tip of this.state.orgTips){
8484
if(tip.tip && tip.tip.toLowerCase().includes(filterStr) ||

0 commit comments

Comments
 (0)