ReactJS-BoilerPlate

时间:2021-04-28 22:35:21
【文件属性】:
文件名称:ReactJS-BoilerPlate
文件大小:19KB
文件格式:ZIP
更新时间:2021-04-28 22:35:21
JavaScript 前端(frontend) 最佳实务 不要让组件使用商店或动作,而是尝试通过页面或布局来做到这一点,这样我们就可以实现最大的可重用性。 执行请求时,请始终实现RESPONSE和RESPONSE_ERROR类型。 这样可以进行详细的错误处理。 我们将changeListeners绑定在componentDidMount和componentWillUnmount上 我们不会在商店中执行查看操作! 因此,没有Navigation.transitionTo事物,视图将执行此操作(有关示例,请参见登录页面) 目录结构 - build/ - src/ - actions/ # Actions will be called by components and they will adapt a store, everything that ends o
【文件预览】:
ReactJS-BoilerPlate-master
----.gitignore(41B)
----README.md(3KB)
----server.js(1KB)
----.eslintrc(10KB)
----webpack.production.config.js(3KB)
----bower.json(70B)
----package.json(2KB)
----src()
--------components()
--------dispatchers()
--------services()
--------index.tpl.html(364B)
--------constants()
--------index.js(173B)
--------routes.js(460B)
----.babelrc(445B)
----.editorconfig(214B)
----webpack.config.js(3KB)

网友评论