示例代码
mines[i] = (
);
.....
render(
return(
{mines}
)
)
此时,当刚刚渲染上去的时候,会提示报错
addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's render method, or you have multiple copies of React loaded.
请问怎么解决问题。。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号