Typescript React.FC<Props> confusion
问题 I am learning typescript and some bits are confusing to me. One bit is below: interface Props { name: string; } const PrintName: React.FC<Props> = (props) => { return ( <div> <p style={{ fontWeight: props.priority ? "bold" : "normal" }}>{props.name}</p> </div> ) } const PrintName2 = (props:Props) => { return ( <div> <p style={{ fontWeight: props.priority ? "bold" : "normal" }}>{props.name}</p> </div> ) } For both functional components above, I see TypeScript generates same JS code. The