Let me reiterate (because this is something that was difficult for me to grasp when I first learned promises), a Promise is just an object. To be able to wait on the server and execute the code in the .then() chain after the response, you …
You are concerned with what the actual solutions are rather than say the most optimum value of some parameter. (if it were the latter it’s most likely DP or greedy).
history → React Router ↘