Fetch a random dog image and display it on the screen.
Store the random dog image in redux.
API to use https://dog.ceo/api/breeds/image/random
App.js
- Presentational/Functional component
Image.js
- Presentational/Functional component
- display an image
DogImage.js
- Container
- fetch a random dog image and display it
Snapshot test all components. Use toMatchSnapshot()
to create a snapshot.
Unit test reducer, actionCreators, and selectors.
- Tests: 20pts
- Components: 5pts
- Clean style: 5pts
- State management: 20pts