Skip to content
On this page

2023년 05월 17일

수정하기
문서 생성 2023-05-17 15:13:09 최근 수정 2023-05-17 23:00:55
여름옷

📚 오늘 도전하고, 배운 것

React Component의 props type 설정하기

TypeScript로 component props type 설정

type CardProps = {
style: React.CSSProperties
children: React.ReactNode
}
const Card: React.FC<CardProps> = ({ style, children }) => {
return (
<div className="card" style={style}>
{children}
</div>
)
}

🤔 학습하면서 궁금하거나 어려웠던 점

🌅 내일은 무엇을?

  • RTK Query

✒️ log

  • 30분 뛰었다.
  • 여름옷을 꺼냈다.