const Test = forwardRef((props, ref) => {
return <div>111<div>
}) & { type:string} // 这里这样定义就会报红,要怎么解决呢
Test.type = 'xxxx'
const Test = forwardRef((props, ref) => {
return <div>111<div>
}) & { type:string} // 这里这样定义就会报红,要怎么解决呢
Test.type = 'xxxx'
13 回答12.9k 阅读
8 回答2.7k 阅读
2 回答5.1k 阅读✓ 已解决
5 回答1.3k 阅读
3 回答2.3k 阅读✓ 已解决
5 回答1.6k 阅读✓ 已解决
3 回答2.2k 阅读