摘要:
Reducer reducer 是一个函数,接受 state 和 action,返回老的或新的 state 。即:(state, action) => state Effect Effects put:用于触发 action 。 yield put({ type: 'todos/add', payl 阅读全文
posted @ 2017-09-19 17:54
新逸辰枫
阅读(447)
评论(0)
推荐(0)
摘要:
Stateless Functional Components(3种方式) JSX Component 嵌套 className class是保留词,需用 className 代替 class JavaScript 表达式 <h1>{ this.props.children }</h1> Mappi 阅读全文
posted @ 2017-09-19 17:36
新逸辰枫
阅读(335)
评论(0)
推荐(0)
摘要:
变量声明 const 和 let:分别表示常量和变量 模板字符串 const user = 'world'; console.log(`hello ${user}`); // hello world 默认参数 function logActivity(activity = 'skiing') { c 阅读全文
posted @ 2017-09-19 16:55
新逸辰枫
阅读(357)
评论(0)
推荐(0)

浙公网安备 33010602011771号