What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-14 05:26:11
Axios Req with Auth Token
const res = await axios.get('https://httpbin.org/basic-auth/foo/bar', { // Axios looks for the `auth` option, and, if it is set, formats a // basic auth header for you automatically. auth: { username: 'foo', password: 'bar' } }); res.statu... Add solution -
Javascript 2021-11-10 07:07:11
how to use axios get
const axios = require('axios'); // Make a request for a user with a given ID axios.get('/user?ID=12345') .then(function (response) { // handle success console.log(response); }) .catch(function (error) { // handle error console.log(e... Add solution -
Other 2021-11-09 13:14:17
infinite-scroll react
import { useState } from "react"; import useInView from "react-cool-inview"; import axios from "axios"; const App = () => { const [todos, setTodos] = useState(["todo-1", "todo-2", "..."]); ... Add solution
Best helpers
Grin
+5
Hwsolutions
+5
SYJ
+5
A. Pelicker
+5
KMC
+5
Jonjie
+5
Blank
+5
Paul Knight
+5
WYSIWYG
+5
Required
+5
Saylestyler
+5
Deverejones
+5
Frank Jaeger
+5