File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 242242| 226| [ What are hooks?] ( #what-are-hooks ) |
243243| 227| [ What are the rules needs to follow for hooks?] ( #what-are-the-rules-needs-to-follow-for-hooks ) |
244244| 228| [ How to ensure hooks followed the rules in your project?] ( #how-to-ensure-hooks-followed-the-rules-in-your-project ) |
245+ | 229| [ What are the differences between Flux and Redux?] ( #what-are-the-differences-between-flux-and-redux ) |
245246
246247## Core React
247248
@@ -3936,4 +3937,16 @@ function Example() {
39363937 }
39373938 }
39383939 ` ` `
3939- **Note:** This plugin is intended to use in Create React App by default.
3940+ **Note:** This plugin is intended to use in Create React App by default.
3941+
3942+ 229. ### What are the differences between Flux and Redux?
3943+ Below are the major differences between Flux and Redux
3944+
3945+ | Flux | Redux |
3946+ | ----- | ------- |
3947+ | State is mutable | State is immutable |
3948+ | The Store contains both state and change logic | The Store and change logic are separate |
3949+ | There are multiple stores exist | There is only one store exist |
3950+ | All the stores are disconnected and flat | Single store with hierarchical reducers|
3951+ | It has a singleton dispatcher | There is no concept of dispatcher |
3952+ | React components subscribe to the store | Container components uses connect function|
You can’t perform that action at this time.
0 commit comments