Once you understand the basics of the React/Flux relationship, it’s time to add asynchronous API management.This will enable the data collection needed for larger web applications through a standard pattern.
You can convert a functional component like set up its own timer and update itself every second.
In the previous post, I walked through a Todo app example in order to conceptualize the process of connecting Flux to a React view.
In this post, I will add an API call to bring external data into the app.
This is commonly called a "top-down" or "unidirectional" data flow.
Any state is always owned by some specific component, and any data or UI derived from that state can only affect components "below" them in the tree.