This project was bootstrapped with Create React App.
This app uses an async await call with a setTimeout to simulate a server call to retrieve purchace data
The data is sorted into an object that acts as a map using individual unique customer Id's as keys. Points per month are calculated by comparing unix time stamps.
This app makes use of the React useMemo
hook to memoize data and improve scalability. The majority of code for review can be found in src/app.js
Screen.Recording.2022-09-29.at.10.16.54.PM.mov
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.