Skip to content
Open
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"printWidth": 120,
"tabWidth": 4,
"singleQuote": true,
"trailingComma": "all",
"semi": false
}
47 changes: 47 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,48 @@
# 리액트 투두 앱 만들기 미션 레포

## 사용 영상


https://github.com/user-attachments/assets/7a0b1191-8b83-4be0-a9d0-aef01accaaae



## 목적

1. React 컴포넌트 구조 이해
2. 투두 앱 기능 구현
3. localStorage를 활용한 데이터 저장 및 유지 기능 구현

## 기술 스택

React
Vite
TailWindCss
JavaScript

## 기능

- 할 일 추가
- 할 일 삭제
- 할 일 완료 체크
- 할 일 세부사항 기록 및 저장
- localStorage 저장

## 프로젝트 구조

src/
├── components/
│ ├── TodoForm.jsx # 할 일 입력 폼
│ ├── TodoItem.jsx # 개별 할 일 항목
│ └── TodoList.jsx # 할 일 목록 렌더링
├── context/
│ └── TodoContext.jsx # Context API 전역 상태 제공
├── hooks/
│ └── useTodos.js # 할 일 CRUD 로직 Custom Hook
├── pages/
│ ├── Main.jsx # 메인 페이지
│ └── Todo.jsx # TODO 관리 페이지
├── utils/
│ └── storage.js # 로컬 스토리지 처리
├── App.jsx # 라우팅 설정
└── main.jsx # 앱 진입점
29 changes: 29 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import js from '@eslint/js'
import globals from 'globals'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import { defineConfig, globalIgnores } from 'eslint/config'

export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{js,jsx}'],
extends: [
js.configs.recommended,
reactHooks.configs.flat.recommended,
reactRefresh.configs.vite,
],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
parserOptions: {
ecmaVersion: 'latest',
ecmaFeatures: { jsx: true },
sourceType: 'module',
},
},
rules: {
'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }],
},
},
])
13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>datodo</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
Loading