In ReactJS if I have components that get data from an API(it was called inside ComponentDidMount lifecycle) and I use the component multiple times, does it call 5 times as well? Note: Same API, Same URL all is same I just used it multiple times.
Because if it called 5 times does it will be more efficient if I call the API outside the components and just feed the data so it will only be called once?