Skip to content

Instantly share code, notes, and snippets.

@ac12644
Last active Jan 30, 2022
Embed
What would you like to do?
import React, { useState, useEffect } from "react";
import FundraiserCard from './FundraiserCard';
const Home = () => {
useEffect(() => {}, []);
const displayFundraisers = () => {
return funds.map( (fundraiser) => {
return (
<FundraiserCard fundraiser={fundraiser} key={fundraiser}/>
);
});
}
return (
<div className="main-container">
{displayFundraisers()}
</div>
) }
export default Home;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment