import { useState, useEffect } from 'react'; import { useAuth } from "../utils/context"; import { Link } from "react-router-dom"; import StudyPlanCard from "./Card/StudyPlanCard"; import subjectApi from '../apis/subject.api'; const StudyPlanList = () => { const { user } = useAuth(); useEffect(() => { getList(user.id); }, []) async function getList(id) { const result = await subjectApi.allSubject(id) } return ( <>

새로운 과목 추가하기

) } export default StudyPlanList;