Redux的最基本样本代码(Immutable)

Redux其实就这样的一回事,十分的简单。 import { createStore } from "redux"; const initialState = { counter: 0 }; //Reducer function reducer(state = initialState, actio ... ...

升级node为更高的版本

sudo apt-get update && sudo apt-get -y upgrade If to install Node.js Version – 4.x curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bas ... ...