Closed dcsan closed 3 years ago
I guess redux is not part of this UI (which is fine) but do you have some best practice suggestions to load data from a server?
Hi, dcsan!
You can fetch data in Context API actions, then call the action in useEffect live cycle method for example and use the data via useContext method in your functional component body.
useEffect
useContext
I guess redux is not part of this UI (which is fine) but do you have some best practice suggestions to load data from a server?