Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Repository files navigation

Food-ordering-website

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]

React + Vite

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:

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 (

{buyers && buyers.map((item, index) => (

{/* 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)

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages