mirror of
https://github.com/tenrok/axios.git
synced 2026-06-23 20:40:40 +03:00
Updated README example to be coherent with the CommonJS usage (#4418)
Co-authored-by: Jay <jasonsaayman@gmail.com>
This commit is contained in:
@@ -113,7 +113,7 @@ const axios = require('axios').default;
|
|||||||
Performing a `GET` request
|
Performing a `GET` request
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const axios = require('axios');
|
const axios = require('axios').default;
|
||||||
|
|
||||||
// Make a request for a user with a given ID
|
// Make a request for a user with a given ID
|
||||||
axios.get('/user?ID=12345')
|
axios.get('/user?ID=12345')
|
||||||
|
|||||||
Reference in New Issue
Block a user