A simple and responsivebweb application taht allows user to browse a menu, place order,and track them.Built using[HTML, CSS, JavaScript, React, Node.js,etc]
the link : https://food-website-using-react-by-chandan.vercel.app/ host by vercel
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
import React, { useEffect, useState } from 'react'; import axios from 'axios';
const Axios = () => { const [buyers, setBuyers] = useState([]); // State to hold fetched buyers const api = 'http://localhost:1337/api/manage-buyers?populate=*';
useEffect(() => { axios.get(api) .then((res) => { console.log(res); setBuyers(res.data.data); // Set the fetched buyers }) .catch((error) => { console.error("Error fetching buyers:", error); }); }, []);
return (
{/* Display each buyer's name and email in a paragraph /} {item.name} - {item.email} {/ Combine name and email in one paragraph */}
export default Axios;
f3566e3 (update .gitignore to ignore logs and build filess)