In this exercise, you'll practice changing the state of an application. We'll begin with a simple table, and then make that table filter-able by doing the following in the main.jsx file:
- Add a function
filterto yourEmployeeTablecomponent in which you get the value of the event (event.target.value), and then set the state of yoursearchStringto that value - In your
renderfunction, usethis.state.searchStringto filter down youremployeesarray. - Assign an
onChangeevent to your<input>element so that it executes yourfilterfunction (i.e.,this.filter)