After we've created a function to fetch the events, lets loop over them and display them on screen with our Event component. This will most likely involve the use of the useEffect and useState React Hooks. If you haven't already, you'll likely need to make use of async/await.
This may require a bit of refactoring of the event component and possibly other things to make it work the way you want it to.
Definition of Done:
On page refresh, the client should request from the server a list of events, and then loop over each one to display them on screen.
After we've created a function to fetch the events, lets loop over them and display them on screen with our Event component. This will most likely involve the use of the useEffect and useState React Hooks. If you haven't already, you'll likely need to make use of async/await.
This may require a bit of refactoring of the event component and possibly other things to make it work the way you want it to.
Definition of Done: