Fork and clone the repository. Run npm install
followed by npm start
.
-
In the
GamesList
component map over thegamesArray
and display aGameCard
for each of them being sure to pass the proper props. -
When the user clicks on one of the three buttons it filters games by whether they're played, unplayed, or the user would like to see all games. This will require passing information between the
SearchBarHeader
and theGamesList
.
As a BONUS: change the styling for the buttons to indicate which filter is currently active.
-
Remove the previous filter functionality. When the user types into the search bar, filter videogames in the
GamesList
so that only those with a matching genre can be seen. Both theSearchBarHeader
and theGamesList
are children ofApp
which means you'll have to think about where state goes and how to effectively pass information. -
Merge the filter functionality from deliverables 3 and 4 (HINT: you can do this with a single filter, you'll probably still need two pieces of state).