Mongodb – How can i add React loading spinner when item is fetching from database?
Here is, my code. i want to add a spinner when data is loading then after finish loading display the data. {/* product section */} <section className="container mx-auto my-5 row"> <h6 className="text-center">WANT TO SEE</h6> <h2 className="text-center mb-5">Our Services</h2> { Products.slice(0,6)?.map((product)…