When making API calls in React, should they all be asynchronous?
Is this a one-size-fits-all answer, or is this scenario-based? If so, what are some good examples of where to use async calls, and where not to use them?
>Solution :
The only way to perform sync API calls is by using XMLHttpRequest in a very particular fashion which is deprecated.
More modern APIs like fetch do not support sync requests even as 1st April joke.
So, yes, it’s a very good idea to keep your API requests async, always.
Sync requests are problematic, make your app perform really bad & are just silly.