jcq 209b92ac44 fix: react示例 2 日 前
..
public 3e0b2e89a9 fix: 更改文件夹名称 1 ヶ月 前
src 209b92ac44 fix: react示例 2 日 前
.gitignore 3e0b2e89a9 fix: 更改文件夹名称 1 ヶ月 前
README.md b7562d2258 fix: 修改注解 1 ヶ月 前
package.json 209b92ac44 fix: react示例 2 日 前
tsconfig.json 3e0b2e89a9 fix: 更改文件夹名称 1 ヶ月 前

README.md

使用 Create React App 快速开始

本项目基于 Create React App 脚手架创建。

可用脚本

在项目目录下,你可以运行:

npm start

以开发模式运行应用。\ 打开 http://localhost:3000 在浏览器中查看。

当你修改代码后,页面会自动刷新。\ 你也会在控制台看到任何 lint 错误。

npm test

以交互式监视模式启动测试运行器。\ 更多信息请参见 运行测试 章节。

npm run build

将应用打包到 build 文件夹。\ 会以生产模式正确打包 React,并优化构建以获得最佳性能。

构建后的文件会被压缩,文件名包含哈希值。\ 你的应用可以直接部署!

更多部署信息请参见 部署 章节。

npm run eject

注意:此操作不可逆。一旦 eject,无法恢复!

如果你对构建工具和配置不满意,可以随时运行 eject。该命令会将所有配置文件和依赖(如 webpack、Babel、ESLint 等)复制到你的项目中,方便你完全自定义。除了 eject 以外的所有命令依然可用,但会指向你复制出来的脚本。此时你需要自行维护这些配置。

你可以永远不使用 eject。默认配置适合大多数中小型项目,无需强制自定义。

了解更多

你可以在 Create React App 官方文档 中了解更多内容。

Getting Started with Create React App

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.\ Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.\ You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.\ See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.\ It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.\ Your app is ready to be deployed!

See the section about deployment for more information.

npm run eject

Note: this is a one-way operation. Once you eject, you can’t go back!

If you aren’t satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.