axios.get("/path", (res) => {
res.json(
}).then(data => console.log(data))
axios.get("http://localhost:5000/products", (req,res) => {
res.json()
}).then(data => console.log(data))
dat.map(()) data in table
npm i axios
const axios = require('axios');
(OR)
window.axios = require('axios');
(OR)
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
axios.get("https://fakestoreapi.com/products/")
.then(function (res){
console.log(res.data);
})