Created
March 4, 2025 10:59
-
-
Save kaineer/3486e69c5c7186d5ef7ff20088bd02e8 to your computer and use it in GitHub Desktop.
tasklist
This file contains hidden or 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 { Task } from './Task' | |
import { TodosSlice } from '../../slices/todo'; | |
import { useSelector } from 'react-redux'; | |
export const TaskList = () => { | |
const { selectors: { getTasks } } = TodosSlice; | |
const tasks = useSelector(getTasks); | |
return ( | |
<ul> | |
{ tasks.map((task) => <Task task={task} />) } | |
</ul> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment