Skip to content

Commit

Permalink
비동기 자료 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
woohm402 committed Sep 12, 2024
1 parent 4afa8b8 commit 11ef2cb
Show file tree
Hide file tree
Showing 6 changed files with 451 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frontend/lecture/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const Sidebar = () => {
const currentPath = useLocation().pathname;

return (
<div className="relative">
<div className="relative flex">
<div
className={cn(
'flex flex-col overflow-hidden py-4 bg-blend-darken',
Expand Down
3 changes: 2 additions & 1 deletion frontend/lecture/src/components/CodeSnippet/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export const CodeSnippet = ({
| 'javascript'
| 'typescript'
| 'jsx'
| 'tsx';
| 'tsx'
| 'c';
}) => {
return (
<Prism
Expand Down
55 changes: 55 additions & 0 deletions frontend/lecture/src/lectures/ApiCall/lecture.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
import { Slides } from '@/components/Slides';
import { getLectureItem } from '@/lectures';

export const apiCallLecture = getLectureItem({
title: 'API 통신하기',
description: 'API, HTTP',
date: new Date('2024-09-25 20:30:00'),
element: (
<Slides
slides={[
{
title: '(OT 복습) 프론트엔드 - 백엔드 구조',
content: <div>TBD</div>,
},
{ title: '(OT 복습) API 통신이란?', content: <div>TBD</div> },
{ title: '(OT 복습) HTTP', content: <div>TBD</div> },
{ title: '(OT 복습) JSON', content: <div>TBD</div> },
{
title: 'json placeholder',
content: (
<div>아쉽게도 우리는 백엔드가 아직 없으니 목서버를 사용합니다</div>
),
},
{ title: 'React 에서 API 통신하기', content: <div>TBD</div> },
{
title: 'API 통신 시 주의할 점 (1) 처음에는 undefined 이다',
content: <div>TBD</div>,
},
{
title: 'API 통신 시 주의할 점 (2) useEffect cleanup',
content: <div>TBD</div>,
},
{
title: 'API 통신 시 주의할 점 (3) 내가 뭘 하려는 건지 잘 생각해보자',
content: (
<div>
<div>
Promise 를 벗기려고 무작정 await 을 때려도 해결되는 건 없다
</div>
</div>
),
},
{
title: 'todo list 만들어보기 라이브코딩',
content: (
<div>
https://jsonplaceholder.typicode.com 의 todo 목록을 버튼 클릭으로
왔다갔다 할 수 있는 코드
</div>
),
},
]}
/>
),
});
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 11ef2cb

Please sign in to comment.