Understanding how to fetch data inside of a U.S. factory and then use it to update some piece of state
is absolutely core in the world of react.
So let's get a little bit of practice with it.
In this exercise, you're going to be fetching a list of users from an outside existing API.
There is a useful for that API already inside this exercise.
All you have to do is make use of axios to make a get request that your URL that's going to give you
back an array of user objects.
You'll then use that array of objects to update the user's piece of state, which has already been set
up for you.
Once you do that, you should see the entire application start to come to life and list of users should
automatically be rendered out over here on the right hand side.
So all you really have to worry about is the user effect function and adding in a little bit of code
there to make the request and then use it to update that user's piece of state to go ahead and give
this a shot.
We'll take a look at a solution in just a moment.