Skip to content

Commit

Permalink
✨ add react lecture (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
woohm402 authored Sep 4, 2024
1 parent b0d143e commit 3076907
Show file tree
Hide file tree
Showing 6 changed files with 682 additions and 108 deletions.
10 changes: 10 additions & 0 deletions frontend/lecture/src/components/Callout/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { PropsWithChildren } from 'react';

export const Callout = (props: PropsWithChildren<{ title: string }>) => {
return (
<div className="mb-4 border-l-4 border-blue-500 bg-blue-100 p-4 text-base text-blue-700">
<p className="font-bold">{props.title}</p>
{props.children}
</div>
);
};
68 changes: 0 additions & 68 deletions frontend/lecture/src/lectures/React/lecture.tsx

This file was deleted.

22 changes: 22 additions & 0 deletions frontend/lecture/src/lectures/ReactApis/lecture.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { Slides } from '@/components/Slides';
import { getLectureItem } from '@/lectures';

export const reactApisLecture = getLectureItem({
title: '리액트 기능들',
description:
'Context API, useState, useEffect, useMemo, memo, useCallback, Custom Hooks',
date: new Date('2024-09-11'),
element: (
<Slides
slides={[
{ title: 'Context API', content: <div></div> },
{ title: 'hooks: useState', content: <div></div> },
{ title: 'hooks: useEffect', content: <div></div> },
{ title: 'hooks: useMemo', content: <div></div> },
{ title: 'memo', content: <div></div> },
{ title: 'hooks: useCallback', content: <div></div> },
{ title: 'Custom Hooks', content: <div></div> },
]}
/>
),
});
Loading

0 comments on commit 3076907

Please sign in to comment.