Skip to content

Instantly share code, notes, and snippets.

@ac12644
Last active January 30, 2022 18:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ac12644/249f05f5e1a7470caeb218f07605752e to your computer and use it in GitHub Desktop.
Save ac12644/249f05f5e1a7470caeb218f07605752e to your computer and use it in GitHub Desktop.
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