I needs a Customer orders email filtering and all customer different different work show. its now work this code.. its gig problems for my you can check this.
Here all code and problems you can check this.
useEffect(() => {
const email = user?.email;
// const url = (`http://localhost:5000/orders?email=${email}`);
const url = (`https://arcane-sierra-49316.herokuapp.com/orders?/${email}`);
console.log(url);
fetch(url)
.then(res => res.json())
.then(data => setMyItems(data))
}, [user])