原创 webstorm shortcut
reformat code = alt command l auto indent line = ctrl alt i insert line after = alt command enter insert line before
原创 Thinking in Redux 筆記
Redux is all about actions ActionCreator Action Middleware Reducer action 只是一個 javascript object 只是發起action的主體是不同的 1。
原创 Meteor 1.6 + React (3)Router
/imports/ui/Landing.js import React, {Component} from 'react'; class Landing extends Component { render() { re
原创 Meteor 1.6 + React (2)withTracker
/imports/api/task.js import { Mongo } from 'meteor/mongo'; export const Tasks = new Mongo.Collection('tasks'); if (
原创 Meteor 1.6 + React (1)設定環境
meteor create todos cd todos meteor npm install --save react react-dom react-dom-router history meteor add react-mete
原创 Reducer
如果沒有傳入state,需回傳預設state 如果沒有對應的action,需回傳目前state
原创 Redux三個規則!!!
Redux三個規則 所有狀態 要存在一個地方,稱state tree state tree是不可直接修改的,如果要變更要使用觸發一個 action Changes are made with pure functions 補充 p
原创 meteor + react + redux
Meteor + React + Redux @Aaron 開篇 一年前就在想要研究一下metoer,過了一年把這計畫拿起來開始執行。 內容 針對metoer、react、redux做分享 meteor 介紹 加入react 加入r
原创 解決 Cannot find module ‘babel-eslint‘
eslint babel-eslint 要裝一起 npm install eslint babel-eslint -g 或是 npm install eslint babel-eslint -D
原创 Redux 基本結構
store state tree previous state tree dispatching an action next state tree
原创 Enterprise Integration Patterns
What Is Messaging? 電話系統 打電話是即時通訊,只有對方可以接聽時,可以通話 留語音是非即時通訊,當對方沒空時,還是可以留言,待對方有空時能收聽 Messaging 就是第二種 Messaging是高速、異步、程序和
原创 如何做到immutable
mutable :修改一個物件就是mutable let a = { val:3 } a.val = 5; 如何immutable ##方法一 let b = Object.assign({},a); b.val = 5; ##方法二