'using axios in react, how to specify a time limit for a get request to error out? [closed]

If the server does not respond within x seconds, then I want to be counted as an error.

How to specify what x is using axios?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source