Form with React入门模板

form_with_react 的入门项目还挺适合刚接触 React 的朋友。基于 Create React App 搭建,结构清晰,脚本也都配好了,跑起来基本不用折腾。你直接在项目目录跑个 npm start,就能在浏览器里看到效果,改代码还能自动刷新,开发体验挺丝滑的。

测试功能也没落下,用 npm test 启动测试,支持交互模式,写点基础测试用例比较方便。如果想打包部署,用 npm run build 一键生成生产环境代码,压缩、优化、带哈希名,直接上服务器就行了。

还有个 npm run eject 命令,比较适合想深度定制 Webpack、Babel 配置的同学。但要注意哦,eject 是不可逆的,慎用。一旦执行,所有配置就都暴露出来了,不熟的建议还是别动。

项目整体来说蛮适合当学习模板或者起步项目的。你要是对 ReactWebpacknpm 脚本这块感兴趣,拿它练练手还挺不错的。

想了解更多相关用法可以看看下面这些:

zip
form_with_react-master.zip 预估大小:32个文件
folder
form_with_react-master 文件夹
file
.gitignore 310B
file
package.json 952B
file
package-lock.json 699KB
folder
src 文件夹
folder
components 文件夹
folder
header.component.jsx 文件夹
file
InputForm.component.jsx 168B
file
custom-button.component.jsx 144B
file
output.component.jsx 234B
folder
redux 文件夹
file
input.utils.js 429B
file
root-reducer.js 184B
file
store.js 293B
file
output.selector.js 184B
file
input.type.js 72B
file
input.action.js 156B
file
input-reducer.js 484B
file
form.component.jsx 194B
file
index.js 346B
file
App.js 268B
file
firebase.utils.js 1KB
file
App.css 564B
file
index.css 366B
folder
pages 文件夹
folder
input-page 文件夹
file
input-page.component.jsx 2KB
folder
input-page.style.css 文件夹
folder
output-page 文件夹
file
output-page.component.jsx 725B
folder
public 文件夹
file
robots.txt 67B
file
logo192.png 5KB
file
index.html 2KB
file
favicon.ico 4KB
file
manifest.json 492B
file
logo512.png 9KB
file
debug.log 232B
file
README.md 3KB
file
.eslintcache 8KB
zip 文件大小:202.67KB