冰河世纪React快速启动模板

Create React App 的快速启动模板,挺适合刚接触 React 的你练手。项目脚手架比较干净,启动开发环境只需要一个yarn start,浏览器秒开,响应也快,调试起来顺手。

构建脚本的写得还挺清楚,像yarn build会自动优化打包、压缩代码、加哈希后缀,适合直接部署上线。如果你想测试一些组件功能,yarn test就能在控制台跑起来,反馈挺直观的。

要注意的是yarn eject这个操作就像拆盲盒,一旦执行就不能回头,会把隐藏的 Webpack、Babel 等配置全放出来。适合那些对配置有洁癖或者想折腾底层的朋友,普通开发其实没必要动它。

如果你还不太熟 Create React App,推荐几个入门文章:

如果你想部署一个干净、简单、可维护性强的 React 项目,这个项目还蛮不错的。熟练后也可以用它当成自己的模版项目来扩展。

zip
ice-age-main.zip 预估大小:62个文件
folder
ice-age-main 文件夹
folder
config 文件夹
file
modules.js 3KB
file
getHttpsConfig.js 2KB
file
webpackDevServer.config.js 7KB
file
webpack.config.js 31KB
folder
jest 文件夹
file
cssTransform.js 314B
file
fileTransform.js 1KB
file
pnpTs.js 620B
file
env.js 4KB
file
paths.js 2KB
file
package.json 5KB
file
package-lock.json 664KB
folder
src 文件夹
file
index.js 590B
folder
images 文件夹
file
hero.png 36KB
file
the_end.png 609KB
file
badfish.png 10KB
file
nut.png 7KB
file
life.png 2KB
file
wallpaper.png 1.98MB
file
reportWebVitals.js 354B
file
react-app-env.d.ts 1KB
folder
containers 文件夹
file
StuffsRandomizerContainer.tsx 2KB
folder
GameContainer 文件夹
file
GameContainerStyles.module.scss 326B
file
GameContainer.tsx 2KB
folder
GameOver 文件夹
file
GameOver.tsx 561B
file
GameOverStyles.module.scss 268B
file
setupTests.js 240B
file
index.scss 437B
folder
components 文件夹
folder
Stuff 文件夹
file
Stuff.tsx 4KB
file
StuffStyles.module.scss 47B
folder
Squirrel 文件夹
file
Squirrel.tsx 849B
file
SquirrelStyles.module.scss 60B
folder
LostLifeAlert 文件夹
file
LostLifeAlertStyles.module.scss 245B
file
LostLifeAlert.tsx 223B
folder
InfoPanel 文件夹
file
InfoPanel.tsx 725B
file
InfoPanelStyles.module.scss 98B
file
App.js 673B
folder
context 文件夹
folder
Mouse 文件夹
file
MouseState.tsx 706B
file
MouseReducer.tsx 553B
file
MouseContext.tsx 185B
folder
User 文件夹
file
UserState.tsx 776B
file
UserReducer.tsx 800B
file
UserContext.tsx 178B
folder
Squirrel 文件夹
file
SquirrelState.tsx 742B
file
SquirrelReducer.tsx 625B
file
SquirrelContext.tsx 197B
folder
types 文件夹
file
UserTypes.ts 655B
file
SquirrelTypes.ts 689B
file
MouseTypes.ts 655B
folder
utils 文件夹
file
utils.ts 224B
file
tsconfig.json 780B
file
.gitignore 329B
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 3KB
file
README.md 3KB
file
yarn.lock 517KB
folder
scripts 文件夹
file
test.js 1KB
file
build.js 7KB
file
start.js 5KB
...
zip 文件大小:3.05MB