Created
March 13, 2021 19:03
-
-
Save bingex/1405c3e2effe9f19c777f142d130a69a 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 from 'react'; | |
import { useSelector } from 'react-redux'; | |
import ProjectSection from './ProjectSection'; | |
const ProjectList = () => { | |
const projects = useSelector(state => state.projectsReducer.projects); | |
return ( | |
<div> | |
{projects.map(project => { | |
return <ProjectSection key={project.id} {...project} />; | |
})} | |
</div> | |
); | |
}; | |
export default ProjectList; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment