React App入门项目配置与启动

创建 React 应用

该项目是通过 Create React App 创建的。可用脚本在项目目录中,可以运行:

  • yarn start:在开发模式下运行应用程序。打开浏览器查看,如果进行编辑,页面将重新加载,控制台也会显示任何错误信息。
  • yarn test:在交互式监视模式下启动测试运行程序。
  • yarn build:构建生产版本的应用程序到 build 文件夹,优化构建以获得最佳性能,生成的文件名包含哈希。
  • yarn eject:注意,这是一项单向操作,执行后无法撤销!如果对构建工具和配置不满意,可以通过 eject 操作将配置文件暴露出来。

重要提醒

  • 在使用 yarn eject 后,所有的构建依赖项和配置文件将被移除,变得可定制。

提示:对于大多数开发者来说,yarn eject 不必要使用,除非有特别定制需求。

zip
recipe-box-main.zip 预估大小:40个文件
folder
recipe-box-main 文件夹
file
craco.config.js 122B
file
package.json 1KB
file
.eslintcache 8KB
folder
src 文件夹
folder
DisplayModeContext.js 文件夹
file
App.jsx 926B
file
App.css 564B
file
index.js 789B
file
reportWebVitals.js 362B
file
RecipeStoreContext.js 2KB
file
logo.svg 3KB
file
App.test.js 246B
file
setupTests.js 241B
folder
components 文件夹
file
AddRecipeModal.jsx 4KB
file
HeaderControls.jsx 829B
file
Alert.jsx 656B
file
HomePage.jsx 318B
file
Header.jsx 209B
file
EditForm.jsx 3KB
folder
ListLink.jsx 文件夹
file
GridView.jsx 454B
file
RecipeCardControls.jsx 797B
file
RecipeCardPage.jsx 3KB
file
IngredientsList.jsx 604B
file
GridCard.jsx 442B
file
Logo.jsx 427B
file
ListView.jsx 540B
file
RecipeList.jsx 280B
file
DisplayButton.jsx 732B
file
AlertContext.js 596B
file
index.css 59B
file
.gitignore 310B
file
tailwind.config.js 338B
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 3KB
file
yarn.lock 505KB
zip 文件大小:229.92KB