(React+TypeScript实战篇)一.项目构建

一.项目创建(搭建带有typescript的) 1.安装命令 >npx create-react-app ts-with-react --typescript 2.npx是什么(优点,npm5.2版本以上有)? 1)避免安装全局模块 2)调用项目安装的内部模块 3.启动项目 >cnpm start   二.体验组件 1.在项目src目录下创建components目录然后新建Hello.tsx 2.
相关文章
相关标签/搜索