Javascript Reactjs TypeError:无法读取属性';风格';未定义的

Javascript Reactjs TypeError:无法读取属性';风格';未定义的,javascript,reactjs,runtime-error,Javascript,Reactjs,Runtime Error,我如何解释以下错误 TypeError:无法读取未定义的属性“style” 从“React”导入React; 从“道具类型”导入道具类型; 从“velocity react”导入{VelocityComponent}; 导入“velocity动画/velocity.ui”; 常数FuseAnimate=(道具)=>{ const children=React.cloneElement(props.children{ style:{//此行引发错误 …道具、儿童、风格, 可见性:“隐藏” } })

我如何解释以下错误

TypeError:无法读取未定义的属性“style”

从“React”导入React;
从“道具类型”导入道具类型;
从“velocity react”导入{VelocityComponent};
导入“velocity动画/velocity.ui”;
常数FuseAnimate=(道具)=>{
const children=React.cloneElement(props.children{
style:{//此行引发错误
…道具、儿童、风格,
可见性:“隐藏”
}
});
返回(
)
};
FuseAnimate.propTypes={
子项:PropTypes.element.isRequired
};
FuseAnimate.defaultProps={
动画:“transition.fadeIn”,
runOnMount:true,
targetQuerySelector:null,
中断行为:“停止”,
可见性:“可见”,
持续时间:300,
延误:50,
宽松:[0.4,0.0,0.2,1],
显示:空
};
导出默认FuseAnimate;

我认为,
道具、儿童、风格是您错误的根源。如果你在做像

render() {
  <FuseAnimate /> // no children
}
render(){
//没有孩子
}
然后
props.children
将被取消定义

render() {
  <FuseAnimate /> // no children
}