npm install -g create-react-app
npm install create-react-app
npx create-react-app playground
npm start
npm run build
See http://kangax.github.io/compat-table/es6/
npm install immutability-helper --save
https://github.com/facebook/react-devtools
npm install --save react-router
npx create-react-app todolist --scripts-version=react-scripts-ts
localStorage.getItem("key"); localStorage.setItem("key", "value"); localStorage.setItem("key", JSON.stringify(objectOrArray));
npm install --save react-simple-storage
npm install --save redux react-redux
https://github.com/zalmoxisus/redux-devtools-extension
const store = createStore(
reducer,
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
);
see https://jestjs.io/docs/en/snapshot-testing
npm install --save-dev react-test-renderer