Skip to content

Commit 7de62ec

Browse files
committed
Add flux interview questions and answers
1 parent 5f1ff96 commit 7de62ec

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@
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|

0 commit comments

Comments
 (0)