Skip to content

[AIBE6/3팀/박은빈] TODO APP 만들기 완료#51

Open
0-0v wants to merge 7 commits intosik2:mainfrom
0-0v:main
Open

[AIBE6/3팀/박은빈] TODO APP 만들기 완료#51
0-0v wants to merge 7 commits intosik2:mainfrom
0-0v:main

Conversation

@0-0v
Copy link

@0-0v 0-0v commented Mar 18, 2026

📝 React Todo List

React를 활용하여 구현한 Todo List 애플리케이션입니다.
할 일 추가, 삭제, 완료 상태 관리와 함께 localStorage를 이용해 데이터를 유지하도록 구현했습니다.


🚀 주요 기능

  • 할 일 추가
  • 할 일 삭제
  • 완료 상태 토글 (checkbox)
  • localStorage를 활용한 데이터 유지

🛠️ 기술 스택

  • Frontend: React (Vite)
  • State Management: Custom Hook (useTodo)
  • Styling: CSS
  • Data Persistence: localStorage

📁 프로젝트 구조

.
├── App.jsx
├── assets
├── components
│   ├── TodoForm.jsx
│   ├── TodoItem.jsx
│   └── TodoList.jsx
├── dto
├── hooks
│   └── useTodo.js
├── index.css
└── main.jsx

⚙️ 실행 방법

npm install
npm run dev

📷 화면

image

피드백 부탁드립니다~

@gemini-code-assist
Copy link

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 PR은 Vite를 활용한 React 프로젝트의 초기 설정을 완료하고, 기본적인 TODO 애플리케이션을 구현합니다. 사용자는 TODO 항목을 추가하고, 완료 상태를 토글하며, 삭제할 수 있습니다. 모든 TODO 데이터는 로컬 스토리지에 자동으로 저장되어 애플리케이션을 다시 시작해도 이전 상태를 유지합니다. 또한, 개발 환경의 코드 일관성을 위해 ESLint 설정이 포함되어 있습니다.

Highlights

  • React 프로젝트 초기 설정: Vite를 사용하여 React 프로젝트의 초기 환경을 설정했습니다.
  • TODO 애플리케이션 구현: TODO 항목 추가, 삭제, 완료 상태 토글 기능을 포함하는 기본적인 TODO 애플리케이션을 구현했습니다.
  • 로컬 스토리지 데이터 영속성: TODO 항목들이 로컬 스토리지에 저장되어 브라우저를 닫았다 열어도 데이터가 유지되도록 구현했습니다.
  • ESLint 설정 추가: 코드 품질 유지를 위해 ESLint와 React Hooks 관련 플러그인을 설정했습니다.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request initializes a React Todo application using Vite, including basic project setup files like .gitignore, README.md, eslint.config.js, index.html, jsconfig.json, package.json, package-lock.json, public/favicon.svg, public/icons.svg, src/index.css, and vite.config.js. The core functionality for the Todo app is implemented in src/App.jsx, src/components/TodoForm.jsx, src/components/TodoItem.jsx, src/components/TodoList.jsx, and src/hooks/useTodo.js, providing features like adding, deleting, and toggling todo items with local storage persistence. Review comments suggest correcting typos in the project name (react-todo-mession1 to react-todo-mission1) in index.html and package.json, fixing a typo in the TodoForm component name in src/components/TodoForm.jsx, and updating jsconfig.json's module and target options to esnext for better consistency with ES modules and modern JavaScript features. Additionally, a potential issue with using Date.now() for generating unique IDs in useTodo.js is highlighted, recommending a more robust ID generation method to prevent React list rendering problems.

<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>react-todo-mession1</title>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

프로젝트 이름에 오타가 있습니다. 'mession1'을 'mission1'으로 수정하는 것이 좋습니다.

Suggested change
<title>react-todo-mession1</title>
<title>react-todo-mission1</title>


{
"compilerOptions": {
"module": "commonjs",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

package.json에서 "type": "module"로 ES 모듈을 사용하고 있으므로, jsconfig.jsonmodule 옵션도 esnext 또는 es2020과 같이 ES 모듈을 지원하는 값으로 설정하는 것이 일관성을 유지하고 최신 JavaScript 기능을 활용하는 데 좋습니다. commonjs는 Node.js 환경에서 주로 사용되는 모듈 시스템입니다.

Suggested change
"module": "commonjs",
"module": "esnext",

{
"compilerOptions": {
"module": "commonjs",
"target": "es6",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

최신 JavaScript 기능을 활용하기 위해 targetes6 대신 es2020 또는 esnext로 업데이트하는 것을 고려해 보세요. 이는 ESLint 설정의 ecmaVersion: 'latest'와도 더 잘 일치합니다.

Suggested change
"target": "es6",
"target": "esnext",

@@ -0,0 +1,27 @@
{
"name": "react-todo-mession1",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

프로젝트 이름에 오타가 있습니다. 'mession1'을 'mission1'으로 수정하는 것이 좋습니다.

Suggested change
"name": "react-todo-mession1",
"name": "react-todo-mission1",

@@ -0,0 +1,15 @@
function TodoFrom({ inputValue, onChange, onSubmit }) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

컴포넌트 이름에 오타가 있습니다. TodoFromTodoForm으로 수정하는 것이 좋습니다.

Suggested change
function TodoFrom({ inputValue, onChange, onSubmit }) {
function TodoForm({ inputValue, onChange, onSubmit }) {

);
}

export default TodoFrom;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

컴포넌트 이름에 오타가 있습니다. TodoFromTodoForm으로 수정하는 것이 좋습니다.

Suggested change
export default TodoFrom;
export default TodoForm;

if (!inputValue.trim()) return;

const newTodo = {
id: Date.now(),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Date.now()는 고유한 ID를 생성하는 간단한 방법이지만, 매우 빠르게 연속적으로 호출될 경우 동일한 ID가 생성될 가능성이 있습니다. 이는 Todo 항목의 key로 사용될 때 React의 리스트 렌더링 문제를 일으킬 수 있습니다. 더 견고한 고유 ID 생성을 위해 uuid 라이브러리 사용을 고려해 보세요.

Suggested change
id: Date.now(),
id: Date.now(), // Consider using a more robust unique ID generator like uuid

@hyunbeomlee1227-dev
Copy link

코드 내부와 CSS가 진짜 보기 편한 거 같아요. Data.now() 라는 기능이 있는지 처음 알았네요! 덕분에 좋은 기능 알아가요!

if (!inputValue.trim()) return;

const newTodo = {
id: Date.now(),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

아이디를 시간으로 찍는 방법도 있군요 어떻게 이런 생각을 하셨죠!! 덕분에 배우고 갑니다!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants