강의

멘토링

커뮤니티

Inflearn Community Q&A

kjkksu971673's profile image
kjkksu971673

asked

Applying TypeScript to React while learning while making web games

Props Typing

Props type 질문드립니다.

Written on

·

223

0

const Try: FunctionComponent<{tryInfo: TryInfo}> = ({ tryInfo }) => {...} 

대신에

const Try = ({ tryInfo } : TryInfo) => {...} 로 써도 될까요?

둘 중 뭐가 많이 쓰이나요?

reacttypescript

Answer 1

0

zerocho님의 프로필 이미지
zerocho
Instructor

아래도 상관은 없습니다. 저는 전자를 선호합니다.

kjkksu971673's profile image
kjkksu971673

asked

Ask a question