I understand that the correct place for initial ajax data loading is in the DidMount component.
It seems to me that I want to make "setState" the result of several asynchronous functions that I will execute.
Thus, I need to put setState in asynchronous callbacks.
Am I doing it right or wrong? Will this cause setState to execute from asynchronous callbacks?
source
share