React 应用开发指南

本指南介绍如何使用 Create React App 工具创建和开发 React 应用。

开发环境

在项目目录下运行以下命令启动开发服务器:

yarn start

此命令会在浏览器中打开应用,并在代码发生更改时自动重新加载页面。控制台会显示代码检查错误信息。

测试

运行以下命令启动交互式测试运行器:

yarn test

生产环境构建

运行以下命令构建生产环境可部署的应用:

yarn build

此命令会将 React 应用打包到 build 文件夹中,并进行优化以提升性能。

移除依赖

运行以下命令从项目中移除单个构建依赖项:

yarn eject

注意: 该操作不可逆,执行后将无法恢复。

zip
react_tarefas-master.zip 预估大小:21个文件
folder
react_tarefas-master 文件夹
file
package.json 1KB
file
.eslintcache 2KB
folder
src 文件夹
folder
entidade 文件夹
file
Tarefa.ts 125B
file
react-app-env.d.ts 40B
folder
http 文件夹
file
index.ts 555B
file
index.tsx 431B
folder
components 文件夹
file
LoadingComponente.tsx 540B
file
FormComponent.tsx 4KB
file
App.tsx 3KB
file
index.css 37B
file
tsconfig.json 535B
file
db.json 375B
file
.gitignore 310B
folder
public 文件夹
file
logo192.png 5KB
file
manifest.json 492B
file
robots.txt 67B
file
index.html 2KB
file
logo512.png 9KB
file
favicon.ico 4KB
file
README.md 2KB
file
yarn.lock 531KB
zip 文件大小:231.03KB