Last active
January 30, 2022 18:55
-
-
Save ac12644/249f05f5e1a7470caeb218f07605752e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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