You can read more about this project’s background on the project’s page. Or start from the beginning with part 1 of this series.
In flavor #5, the different UI elements are updated using state management with Redux using a middleware as the app calls an asynchronous endpoint.
If you are new here you may wonder why I am overcomplicating a really simple application that can be shipped in 3 lines of functional Vanilla JavaScript. And the reason is: Shipping a simple app in a simple environment with fewer moving parts = great way to practice a new way to solve a problem. This is the spirit behind the Making a random quote machine in a few different flavors series. Enjoy!
In Part 7 (to be posted next week), I will cover a seventh flavor and will be calling an asynchronous endpoint to request the data, while still using React.
If you’re curious about the next flavors and would like to make a writer very happy today, you should subscribe to Morse Wall.