So, I have dependent data that I need to fetch from the REST API. The data A have some key information in data B, so it is necessary to make sure to fetch (and LOAD) data B before data A.
What is the best way of doing this in React?? I solved this problem with recursive function that accepts array of strings as API endpoints, and fire it one after another, but I wonder is this the proper way of sequential API call in React?