Skip to content

Instantly share code, notes, and snippets.

@bingex
Created March 13, 2021 19:03
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 bingex/1405c3e2effe9f19c777f142d130a69a to your computer and use it in GitHub Desktop.
Save bingex/1405c3e2effe9f19c777f142d130a69a to your computer and use it in GitHub Desktop.
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