Skip to content

Chocobe/-Project-study-time-checking

Repository files navigation

Project Study Time Checker




구현 계획

  1. Layout 구현: AuthorLayout, MainLayout
  2. Author 저장용 Context 구현
  3. App 구현: Author - App - Layout




컴포넌트 구조

├─ <BrowserRouter />
│     └── <MainContext />
│           └─ <App />
│                 └─ <Outlet />
│                       ├─ <Home />
│                       └─ <Study />




MainContext 구조

// MainStateContext
interface MainStateContext {
  email: string;
  password: string;
  token: string;
}

enum DispatchType {
  INIT: "INIT"
  LOGIN: "LOGIN"
  LOGOUT: "LOGOUT"
}

interface DispatchPayload {
  email: string;
  password: string;
}

// MainDispatchContext
interface MainDispatchContext {
  ({ type: DispatchType, payload: DispatchPayload }) => void
}




구현 결과

About

스터디 시간 측정 토이 프로젝트 입니다.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published