React应用开发命令总结

通过Create React App入门,本项目提供了几个有用的脚本,在项目目录下可使用以下命令:

  • yarn start:在开发模式下运行应用程序,打开浏览器查看页面。编辑后页面会自动刷新,并且控制台中会显示任何错误信息。

  • yarn test:启动交互式监视模式的测试运行程序。

  • yarn build:构建生产环境的应用程序,生成到build文件夹,并且在生产模式下捆绑并优化React应用,确保最佳性能。构建文件会被最小化,文件名中包含哈希值,应用准备部署。

  • yarn eject:注意,此命令是单向操作,一旦执行将无法恢复。通过eject,您可以删除构建工具和配置,自己进行选择和配置。

zip
movie-list-app-main.zip 预估大小:23个文件
folder
movie-list-app-main 文件夹
file
.gitignore 310B
file
package.json 930B
folder
src 文件夹
folder
components 文件夹
file
Movie.js 869B
file
Filter.js 469B
file
MovieList.js 268B
file
Header.js 433B
file
Body.js 510B
file
index.js 484B
file
App.js 1KB
folder
reducers 文件夹
file
year.js 192B
file
index.js 307B
file
search.js 198B
file
isLoading.js 250B
file
App.scss 3KB
folder
actions 文件夹
file
index.js 372B
folder
public 文件夹
file
robots.txt 67B
file
logo192.png 5KB
file
index.html 645B
file
favicon.ico 4KB
file
manifest.json 492B
file
logo512.png 9KB
file
README.md 3KB
file
yarn.lock 515KB
zip 文件大小:222.81KB