asked
Applying TypeScript to React while learning while making web games
Props Typing
Written on
·
223
0
const Try: FunctionComponent<{tryInfo: TryInfo}> = ({ tryInfo }) => {...}
대신에
const Try = ({ tryInfo } : TryInfo) => {...} 로 써도 될까요?
둘 중 뭐가 많이 쓰이나요?
Answer 1
아래도 상관은 없습니다. 저는 전자를 선호합니다.