- [x] Test the API via Postman. - [x] **Fetch products** - [x] by **thunk action** and save it in the `product reducer` - [x] endpoint `/products` - [x] in response you will get Object like below: ```js { total: 185, products: [ { ProductObject1 }, { ProductObject2 }, … ] } ``` After getting response you need to - [ ] set total to Product Reducer - [x] set products to Product Reducer - [ ] You should list products in the UI (shopping page) - [ ] While fetching products data, a loading spinner should be shown on the screen
Test the API via Postman.
Fetch products
product reducer/productsAfter getting response you need to
- [ ] set total to Product Reducer
- [x] set products to Product Reducer
You should list products in the UI (shopping page)
While fetching products data, a loading spinner should be shown on the screen