react
valueflow
记录学习过程。
展开
-
react-cli创建ts项目
npx create-react-app project-name --template typescript原创 2021-10-24 13:49:02 · 260 阅读 · 0 评论 -
‘LeftMenu‘ cannot be used as a JSX component.
最近刚开始学习react,编写完类组件,使用时发现报错,错误如下: TS2786: 'LeftMenu' cannot be used as a JSX component. Its instance type 'LeftMenu' is not a valid JSX element. Type 'LeftMenu' is missing the following properties from type 'ElementClass': context, setState, forceUpdat原创 2021-08-17 20:46:02 · 3206 阅读 · 0 评论