[React]children의 type

지리·2023년 6월 16일

React children의 type으로는 React.PropsWithChildren을 사용하면 된다!

const MyComponent = ({ children }: PropsWithChildren) => { /* ... */ }

참고

https://itchallenger.tistory.com/641

profile
공부한것들, 경험한 것들을 기록하려 노력합니다✨

0개의 댓글