hooks封装方法的两种写法的区别

对于在hooks+typescript的项目中封装组件的两种不同的写法

//1、
const MyLoading: React.FC<Props> = (props) => {
    return (<></>)
}
//2、
const MyLoading1 = ({ ...props }: Props) => {
    return <></>
}

有人知道具体有什么区别么??

ts 写法的不同 吧 。第一个 更严谨,严格 。
第二个 只规定了 props的类型