react memo
To DO
redux-first-router使
storybook
storybook
e2e
nextjs


Virtual DOM
DoM
Virtual DOMDoMReactDOM
Virtual DOM
Virtual DOMDOM
React.createElement

JSX
DOMVirtual DOM
JSJSX使

Flux

View
React
Action

Action
Action

Dispatcher
EventEmitter
DispatchStore
ActionstoreDispatch

Store
Action
View

Redux
Flux
3
1. Single source of truth

2. State in read-only
ActiondispatchFlux

3. Changes are made with pure functions

Reducer
state
Object.assign使
state

Babel
ECMAScript6JS
reactbabelbabel-preset-reactreactbabelJSX
babel-clinodejsnpm

webpack
JS
import hoge from 'hoge' npm

React tips
bind
constructor
this.addTodo = this.addTodo.bind(this);

this
thisAppDoMthis
bindaddTodothisApp

3

concatpush
concatpush
reactstateconcat使statesetState

react-redux
reduxactiondispatchreducerstatesubscribestateview
state
react-redux
statedispatcherprops


middleware
redux
reducer