-
Notifications
You must be signed in to change notification settings - Fork 55
[AIBE3/4팀/이록은] TODO APP 만들기 완료 #32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Leere1
wants to merge
2
commits into
sik2:main
Choose a base branch
from
Leere1:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| 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? |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,70 @@ | ||
| # 리액트 투두 앱 만들기 미션 레포 | ||
| # 📝 리액트 투두 만들기 | ||
|
|
||
| ## 📖 프로젝트 개요 | ||
|
|
||
| 이 과제는 **React**와 **Vite**를 사용해 간단한 Todo List를 구현하는 프로젝트입니다. | ||
| 컴포넌트 구조와 상태 관리를 이해하고, `localStorage`를 활용한 데이터 유지 기능을 학습합니다. | ||
|
|
||
| --- | ||
|
|
||
| ## 🚀 주요 기능 | ||
|
|
||
| ✅ **1. 할 일 추가** | ||
| – 텍스트 입력 후 버튼 클릭 시 리스트에 항목 추가 | ||
|
|
||
| 🗑 **2. 할 일 삭제** | ||
| – 항목의 삭제 버튼 클릭 시 해당 항목 제거 | ||
|
|
||
| ✏️ **3. 할 일 수정** | ||
| – 수정 버튼 클릭 시 입력창으로 전환 후 수정 가능 | ||
|
|
||
| 🕒 **4. 할 일 등록 시간 확인** | ||
| – 할 일 내용을 클릭하면 우측에 등록 시간이 표시됨 | ||
|
|
||
| ✔️ **5. 완료 체크** | ||
| – 체크박스로 완료 상태 표시 | ||
|
|
||
| 💾 **6. localStorage 저장** | ||
| – 추가/삭제/체크/수정 시 변경된 todo 상태를 localStorage에 저장 | ||
|
|
||
| 🔄 **7. 초기 로드 시 데이터 불러오기** | ||
| – 앱 실행 시 localStorage에서 데이터를 불러와 렌더링 | ||
|
|
||
| --- | ||
|
|
||
|
|
||
|
|
||
| ## 📁 프로젝트 구조 | ||
|
|
||
| ``` | ||
| src/ | ||
| ├── components/ | ||
| │ ├── ToDoItem.jsx | ||
| │ ├── ToDoList.jsx | ||
| │ └── ToDoWriteForm.jsx | ||
| ├── hooks/ | ||
| │ └── useTodos.jsx | ||
| ├── utils/ | ||
| │ └── storage.js | ||
| ├── App.jsx | ||
| ├── index.css | ||
| └── main.jsx | ||
| ``` | ||
|
|
||
|
|
||
|
|
||
| ## 🛠️ 기술 스택 | ||
|
|
||
| - **React** | ||
| - **JavaScript** | ||
| - **Vite** | ||
|
|
||
|
|
||
| ## ✨ 실행 방법 | ||
|
|
||
| ```bash | ||
| # 의존성 설치 | ||
| npm install | ||
|
|
||
| # 개발 서버 실행 | ||
| npm run dev | ||
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
| 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['recommended-latest'], | ||
| 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_]' }], | ||
| }, | ||
| }, | ||
| ]) |
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
| 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="/vite.svg" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| <title>Vite + React</title> | ||
| </head> | ||
| <body> | ||
| <div id="root"></div> | ||
| <script type="module" src="/src/main.jsx"></script> | ||
| </body> | ||
| </html> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
깔끔하게 잘 작성해주신 readme PR 클릭시 바로 보이면 더 좋을 것 같습니다!