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'
10 回答11.1k 阅读
5 回答4.8k 阅读✓ 已解决
4 回答3.1k 阅读✓ 已解决
2 回答2.6k 阅读✓ 已解决
3 回答5.1k 阅读✓ 已解决
3 回答1.8k 阅读✓ 已解决
4 回答2.4k 阅读✓ 已解决