React-Router - Histories Posted on 2016-05-04 | In React , React-Router 这个其实就是策略: browserHistory hashHistory createMemoryHistory browserHistory 这个就是path策略, 要server端处理请求的 hashHistory 这个hash策略.没啥说的.前端路由 createMemoryHistory ... Read more »
React-Router - Route Matching Posted on 2016-05-04 | In React , React-Router 内嵌是否match path是否match 多个match的时候优先第一个 内嵌不说了 Path<Route path="/hello/:name"> // matches /hello/michael and /hello/ryan<Route path="/ ... Read more »
React-Router - Configuration Posted on 2016-05-03 | In React , React-Router 基本的内嵌 和默认 组件请看 http://dreambo8563.github.io/2016/05/03/React-Router-Introduction/ Redirectimport { Redirect } from 'react-router'render(( & ... Read more »
React-Router - Introduction Posted on 2016-05-03 | In React , React-Router react-router简单应用 实现多个组件间的切换 分组件export class About extends React.Component<any, any> { constructor() { super(); } ... Read more »
Redux - applyMiddleware源码解析 Posted on 2016-04-29 | In React , Redux applyMiddleware 干啥,就是创建了一个新的createStore方法,这个新的方法里 会执行你带入的function export default function applyMiddleware(...middlewares) { return (createStore) ... Read more »
Redux - combineReducers源码解析 Posted on 2016-04-29 | In React , Redux combineReducers 的作用就是把多个reducer 合并成一个,疑问createStore的时候只接受一个reducer参数 combineReducers export default function combineReducers(reducers) { var re ... Read more »
Redux - compose源码解析 Posted on 2016-04-28 | In React , Redux compose 其实比较FP,这也让我对以后看下haskell有点期待.缺少这种FP lib的运用 /** * Composes single-argument functions from right to left. The rightmost * function can take multi ... Read more »
Redux - createStore源码解析 Posted on 2016-04-28 | In React , Redux 分部解释源码: ActionTypesexport var ActionTypes = { INIT: '@@redux/INIT'}; 这个ActionTypes的作用,INIT作为内部私有的type,也就是说我们程序不要把type命名和这个一样.当这个type传到reduc ... Read more »
Redux - TodoList Posted on 2016-04-27 | In React , Redux 用ts 跟了一遍TodoList.先总结下基本的收获 Action - 必须带个type字段. 是用来表述发生了什么和发生变化的数据{ type: ADD_TODO, id: nextTodoId++, text }; Action Creator - 就是对Action做个封装的function ... Read more »
Angular2 - DCL - inputs/outputs Posted on 2016-04-25 | In Angular2 群友用 DCL 的返回的 promise 里做里 inputs 和 outputs 直接解决了 dialog 传入传出 componentRef 的问题 直接看图,不错 Read more »