#51 myTask.js useState projects added

parent 316c356d
......@@ -60,16 +60,18 @@ export default function EnhancedTable() {
useEffect(() => {
dispatch(fetchAllTasks());
dispatch(fetch)
}, [dispatch]);
const tasks = useSelector((state) => state.tasks.tasks);
console.log(tasks)
const [recievedTasks, setRecievedTasks] = useState([]);
const projects=[
"project1",
"project2",
"project3"
]
const [projects,setProjects]=useState([])
// const projects=[
// "project1",
// "project2",
// "project3"
// ]
const [order, setOrder] = React.useState("asc");
const [orderBy, setOrderBy] = React.useState("id");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment