-
Notifications
You must be signed in to change notification settings - Fork 24
4주차 과제 #31
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
4주차 과제 #31
Conversation
|
리액트 예제 추가 |
|
@InSeong-So pr 확인해주시고 머지해주세용 |
|
체크 완료~!~! |
| // jsonplaceholder 에서 제공해주는 api 명세를 기준으로 설계함 | ||
| type Todo = { id: number; userId: number; title: string; completed: boolean }; | ||
| type Todos = Todo[]; | ||
|
|
||
| // 이것보다는, 아래와 같이 관리하는게 더 효과적이다! | ||
| type WrongTodosState = { | ||
| isLoading: boolean; | ||
| error?: string; | ||
| todos: Todos; | ||
| }; | ||
|
|
||
| // item 28 | ||
| type TodosSuccess = { | ||
| todos: Todos; | ||
| type: 'fulfilled'; |
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.
리액트 프로젝트는 진짜 예제인가요?.?
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.
진짜예제라는게 무슨뜻이죵 그냥 저라면 이렇게 관리할것같다라는 의도로 작성한거에요 원래 문제로 낼려다가 어떻게 낼지 모르겠어서...ㅋㅋㅋ
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.
ㅋㅋ과제아니구 예제 맞죠? 죠습니당
No description provided.