typescript-react:在React中使用Typescript的指南

时间:2021-04-30 08:11:41
【文件属性】:
文件名称:typescript-react:在React中使用Typescript的指南
文件大小:181KB
文件格式:ZIP
更新时间:2021-04-30 08:11:41
JavaScript Typescript与React结合使用的指南 此回购协议包含有关如何将Typescript与react结合使用的工作代码 该代码库的内容可以在此处找到[将很快更新] 入门 克隆此仓库 git clone https://github.com/samuelayo/typescript-react.git 将目录更改为新克隆的存储库 cd typescript-react 全局安装Typescript npm install -g typescript 安装所需的软件包 npm install 指示npm使用全局安装的Typescript npm link typescript 编译应用 npm run magic 运行该应用程序,在任何浏览器中打开index.html文件
【文件预览】:
typescript-react-master
----.gitignore(14B)
----tsconfig.json(127B)
----app.tsx(389B)
----package.json(372B)
----src()
--------UserInterface.ts(92B)
--------FirstComponent.tsx(503B)
--------UserComponent.tsx(468B)
----readme.md(666B)
----build()
--------bundle.js(712KB)
----index.html(276B)
----webpack.config.js(1KB)

网友评论