我完全按照react-bootstrap文档中所示的方式使用Modal组件,但得到了错误Property 'show' does not exist on type 'IntrinsicAttributes<Modal show={props.showModal} onHide={props.handleCloseModal}>
<Modal.Header closeButton>
出现以下错误: Type '{ store: Store<CombinedState<{ user: User; }>, AnyAction>; }' is not assignable to type 'IntrinsicAttributes类型‘IntrinsicAttributes’上不存在属性'store‘。(2322) 使用我的react typescript应用。不知道这里错过了什么。有谁能帮帮我吗? Live
TS2322: Type '{ className: string;}‘不能分配到键入'IntrinsicAttributes’。类型'IntrinsicAttributes‘上不存在其他属性'className’。
谢谢!
很有意思!当我导入{ReactComponent as Logo}时-我不再有错误了。