Then comes the chaining. We can avoid the .then() chaining by using Async/await and write more readable code.
To use async/await, first call async in the function. Then when making a request and expecting a response, add the await syntax in front of the function to wait until the promise settles with the result.
https://www.freecodecamp.org/news/how-to-consume-rest-apis-in-react/