Home page contains:
- Filter
- RequestList
Strategies :
- Check localStorage (
requests
) - If there is no data, fetch all requests from
data.js
(Home) - Save it in localStorage
- If there is data, continue to the next step
- update state of Home which hold reqests data
- Pass it to Filter and RequestList
Filter
Options
- Change all requests by category selected by user
- Need a function from Parent Component
Modal
- Change all requests by category/categories searched by user
- Also need a function from Parent Component