1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

combinereducer と reduce-reducerの違い

Posted at

combinereducerとreduce-reducerの違いを調べた。

combinereducersは入れ子状態のstateを作る。
一方でreducereducerはフラットで、並行したstateを作る。

combinereducersはそれぞれのreducerが自身特有のstate
を持つ。
一方でreducereducersはどのreducerも同じstateを持つ。
そのため、同じstateを操作することを予想されているreduceを変えるときに便利である。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?