React快速上手脚手架

Create React App 的初始化流程,简单明了。yarn start跑起来就是开发环境,自动打开浏览器,改点代码页面就能立马刷新,响应也快,调试挺顺手的。

yarn build构建之后会自动压缩打包,文件名也自带哈希,部署起来不费劲。项目结构清晰,该有的配置都有,基本不用动手改太多,适合刚上手的你。

yarn eject这步要慎重,真的是一步回不了头。适合对webpack或者Babel配置有要求的朋友,普通使用场景其实没必要动它。

如果你是第一次玩 React,想快速搭个项目上手练练,那这个脚手架真的挺香的。要是你想了解更多底层细节,可以看看下面这些文章。

zip
vodafone-assessment-master.zip 预估大小:40个文件
folder
vodafone-assessment-master 文件夹
file
.gitignore 310B
file
package.json 931B
file
package-lock.json 629KB
folder
src 文件夹
folder
components 文件夹
folder
Slider 文件夹
file
Slider.js 3KB
folder
components 文件夹
file
SliderItem.js 572B
file
index.js 54B
folder
Navigation 文件夹
file
Navigation.js 2KB
file
index.js 66B
folder
ErrorComponent 文件夹
file
index.js 78B
file
ErrorComponent.js 134B
file
setupTests.js 241B
folder
services 文件夹
file
ApiService.js 481B
folder
assets 文件夹
file
icon2.png 3KB
file
icon1.png 2KB
file
icon3.png 2KB
file
index.js 500B
file
App.js 672B
folder
containers 文件夹
folder
Home 文件夹
folder
components 文件夹
folder
SectionContent.js 文件夹
file
ImageContainer.js 670B
file
Home.js 3KB
file
index.js 48B
file
SecondSection.js 114B
file
FirstSection.js 1KB
folder
SecondPage 文件夹
folder
components 文件夹
file
CardItem.js 1KB
file
index.js 66B
file
SecondPage.js 2KB
file
reportWebVitals.js 362B
file
Page1.psd 2.75MB
file
App.css 564B
file
index.css 366B
file
App.test.js 246B
folder
hoc 文件夹
folder
DefaultLayout 文件夹
file
index.js 75B
file
DefaultLayout.js 560B
folder
public 文件夹
file
robots.txt 67B
file
index.html 2KB
file
favicon.ico 4KB
file
manifest.json 492B
file
README.md 3KB
folder
.vscode 文件夹
file
settings.json 257B
file
yarn.lock 495KB
zip 文件大小:978.54KB