Create React App快速启动React项目

想要快速启动一个 React 项目?试试Create React App吧!它是一个官方推荐的脚手架,挺简单易用的。运行yarn start就能在开发模式下启动你的应用,浏览器会自动加载,编辑代码时页面也会自动刷新,调试起来方便。想测试的话,运行yarn test,可以启动交互式的测试模式。更酷的是,使用yarn build可以把应用构建到生产环境,生成优化过的打包文件,性能杠杠的。唯一需要注意的是,运行yarn eject会将项目的配置文件提取出来,自己改动配置时能更自由,但这一步是不可回退的哦。对于大多数小型项目来说,Create React App已经足够了,省事儿,简洁高效。嗯,如果你觉得某些构建工具不太适合,可以随时eject,不过要三思哦。

zip
course-hooks-master.zip 预估大小:18个文件
folder
course-hooks-master 文件夹
file
package.json 809B
folder
src 文件夹
file
App.css 564B
file
index.js 500B
file
reportWebVitals.js 362B
file
logo.svg 3KB
file
App.test.js 246B
file
setupTests.js 241B
file
App.js 528B
file
index.css 366B
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 3KB
file
yarn.lock 492KB
zip 文件大小:213.1KB