Fun with redux!
Then open http://localhost:3008/ in your browser
(* npm also works, but yarn is faster)
This application was created to show how strong the force is in Redux. Use it as example, training, learning, or just break it down in pieces and tell me what I did wrong. It uses the Star Wars API, which can be found on http://swapi.co/, to have some data to show.
To use as little boilerplate as possible, the app uses the Next framework (https://github.com/zeit/next.js).
ItemDisplaycomponent contains a button that expands or collapses a JSON dump. It does so by holding it's own state. Rewrite this to use redux.
- Rewrite the existing
onChooseEndpointaction to not fetch new data from the API, if the dat is already loaded.
ItemDisplaydetect what kind of object it has received, and change display based on that
- Sort the list of items alphabetically
- Make more changes - use your imagination!