Skip to content

김미수 과제#2

Open
Misu0616 wants to merge 1 commit into
house-study:mainfrom
Misu0616:todo
Open

김미수 과제#2
Misu0616 wants to merge 1 commit into
house-study:mainfrom
Misu0616:todo

Conversation

@Misu0616
Copy link
Copy Markdown

과제 제출합니다

Copy link
Copy Markdown
Contributor

@jeongnaehyeok jeongnaehyeok left a comment

Choose a reason for hiding this comment

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

👍

Comment thread src/App.js
Comment on lines +9 to +10
const newId = todos.length > 0 ? todos[0].id + 1 : 1;
setTodos([{ id: newId, text: newTodo, isCompleted: false }, ...todos]);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

신기하게 해결했네요. 이런 방법은 생각도 못했네요 👍

Comment thread src/App.js
Comment on lines +25 to +28
const deleteAll = () => {
setTodos([]);
setdeleteComplete(true);
};
Copy link
Copy Markdown
Contributor

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.

2 participants