- Run
yarn code-review
and openhttp://localhost:3000
- Perform a code review.
- Be as critical as possible
- Don't be shy, this was written by an external developer and we have since refactored it.
- Run
yarn dev
to start the react server onhttp://localhost:3000
- We have a mock API that returns a list of call invites.
- We want to fetch the call invites and display them as a list.
- Use redux and the existing redux actions and reducers in
store/invites
- Now we want the page to continuously poll for new invites every 3 seconds.
- Edit the page to do that.
- We want other pages to also be able to poll for new invites.
- Refactor the page to use a custom hook that can be used by other pages.