Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f048f46

Browse files
Merge pull request #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)

AltStyle によって変換されたページ (->オリジナル) /