随笔分类 -  前端框架

摘要:我觉得react是js 框架,而bootstrap只是一个前端ui框架 bootstrap:基于html的UI构建工具; react:基于组建的工程构建方式; 阅读全文
posted @ 2019-09-16 22:23 zzfx 阅读(524) 评论(0) 推荐(0) 编辑
摘要:redux官方网站 http://cn.redux.js.org/docs/api/combineReducers.html https://www.redux.org.cn 从设计的角度看Redux http://developer.51cto.com/art/201904/595724.htm 阅读全文
posted @ 2019-06-13 16:40 zzfx 阅读(276) 评论(0) 推荐(0) 编辑
摘要:目录 为何而写 redux是什么 redux的设计哲学 redux的工作流 redux的几个核心要素 store action reducer actionCreator combineReducers redux中间件 小结 目录 为何而写 redux是什么 redux的设计哲学 redux的工作 阅读全文
posted @ 2019-06-12 19:38 zzfx 阅读(259) 评论(0) 推荐(0) 编辑
摘要:基于flux和reduce的通信和状态管理机制; 和数据库管理系统一样,redux是一个状态管理系统(或机制)。 const store = createStore( reducer, compose( applyMiddleware(thunk), DevTools.instrument() ) 阅读全文
posted @ 2019-06-12 19:36 zzfx 阅读(337) 评论(0) 推荐(0) 编辑
摘要:This is a post that tries to explain the the basics of Redux. We’ll build a minimal working example with Redux. If you’re looking for proper Redux doc 阅读全文
posted @ 2019-06-12 18:32 zzfx 阅读(444) 评论(0) 推荐(0) 编辑
摘要:Also these are really nice (from http://slides.com/jenyaterpil/redux-from-twitter-hype-to-production#/): Basic Flow Side Effects Side Effects with API 阅读全文
posted @ 2019-06-12 18:12 zzfx 阅读(395) 评论(0) 推荐(0) 编辑
摘要:一、综述 Flux 被用来描述“单向”的数据流,且包含某些特殊的事件和监听器。 响应式编程是一种面向数据流和变化传播的编程范式 flux是响应式编程的一种? Flux 在本质上采用了模型-视图-控制器 (MVC) 的结构,但引入了很高的复杂性。 https://www.ibm.com/develop 阅读全文
posted @ 2019-06-11 18:37 zzfx 阅读(306) 评论(0) 推荐(0) 编辑
摘要:要素:store、reducer、dispatch/subscribe connect:将业务逻辑剥离到容器类,数据的双向绑定; 数据、操作、UI分离、命令封装 核心思想:对共享状态的维护; 核心代码: store={createStore(reducer) const reducer = (sta 阅读全文
posted @ 2019-05-17 10:56 zzfx 阅读(132) 评论(0) 推荐(0) 编辑
摘要:https://www.jqhtml.com/23003.html 这篇文章试着聊明白这一堆看起来挺复杂的东西。在聊之前,大家要始终记得一句话:一切前端概念,都是纸老虎。 不管是Vue,还是 React,都需要管理状态(state),比如组件之间都有共享状态的需要。什么是共享状态?比如一个组件需要使 阅读全文
posted @ 2019-01-21 16:09 zzfx 阅读(1690) 评论(1) 推荐(0) 编辑