Update Function Names
This commit is contained in:
@@ -22,7 +22,7 @@ class App extends Component {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
handleChange = e => {
|
onSearchChange = e => {
|
||||||
this.setState({ searchField: e.target.value })
|
this.setState({ searchField: e.target.value })
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -38,7 +38,7 @@ class App extends Component {
|
|||||||
<h1>Monster Rolodex</h1>
|
<h1>Monster Rolodex</h1>
|
||||||
<SearchBox
|
<SearchBox
|
||||||
placeholder='Search Monsters'
|
placeholder='Search Monsters'
|
||||||
handleChange={this.handleChange}
|
handleChange={this.onSearchChange}
|
||||||
/>
|
/>
|
||||||
<CardList monsters={filteredMonsters} />
|
<CardList monsters={filteredMonsters} />
|
||||||
</div >
|
</div >
|
||||||
|
|||||||
Reference in New Issue
Block a user