2016-03-01から1日間の記事一覧
reducer と action の関係 actionはどういう挙動がありますよーっていう定義。 reducerはその定義に対して実際どういう動きしますよーっていう実際の処理を記述する。 だからreducerはstoreとactionを引数に受け取って新たなstateを返す関数となる。 (reduce…
Dispatching Function A dispatching function (or simply dispatch function) is a function that accepts an action or an async action; it then may or may not dispatch one or more actions to the store. ディスパッチング関数は action か 非同期 ac…
Dispatching Function A dispatching function (or simply dispatch function) is a function that accepts an action or an async action; it then may or may not dispatch one or more actions to the store. ディスパッチング関数は action か 非同期 ac…
Reducer Glossary | Redux A reducer (also called a reducing function) is a function that accepts an accumulation and a value and returns a new accumulation. They are used to reduce a collection of values down to a single value. reducer とは…
createStore(reducer, [initialState], [enhancer]) createStore | Redux reducer (Function): A reducing function that returns the next state tree, given the current state tree and an action to handle. reducer とは state を返す 関数で 現在のsta…