I like building the components first because it helps avoid coupling them with the API response, but I have done it both ways.
The big benefit of building the components first is that you don't get blocked waiting for the backend dev to finish building the endpoints.