摘要: 1、函数组件的声明方式及差异 普通函数声明 箭头函数声明 使用React.FC类型(TypeScript专用) interface Props { content: string } // 写法一 const MyComponent: React.FC<Props> = (props) => { r 阅读全文
posted @ 2025-04-15 20:12 前端羽哥 阅读(95) 评论(0) 推荐(0)