You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -373,6 +373,108 @@ The most of the applications has several top-level directories as below:
373
373
<b><a href="#table-of-contents">↥ back to top</a></b>
374
374
</div>
375
375
376
+
## Q. What is Redux DEVTools?
377
+
378
+
**Redux DevTools** is a browser extension and debugging platform that provides a powerful UI for inspecting every Redux action and state change in your application in real time. It is one of Redux\'s most compelling developer experience features.
1. **Either mutate OR return** - Don't do both in the same reducer
3441
-
2. **Don't return undefined** - Always return state or nothing
3542
+
1. **Either mutate OR return** - Don\'t do both in the same reducer
3543
+
2. **Don\'t return undefined** - Always return state or nothing
3442
3544
3443
3545
```js
3444
3546
// ✅ GOOD - Mutate the draft
@@ -3459,7 +3561,7 @@ reducers: {
3459
3561
reducers: {
3460
3562
increment: (state) => {
3461
3563
state.value+=1;
3462
-
return state; // Don't do this!
3564
+
return state; // Don\'t do this!
3463
3565
}
3464
3566
}
3465
3567
@@ -3591,7 +3693,7 @@ const store = configureStore({
3591
3693
3592
3694
## Q. How to migrate from Redux to Redux Toolkit?
3593
3695
3594
-
Migrating from traditional Redux to Redux Toolkit can be done gradually. You don't need to rewrite everything at once.
3696
+
Migrating from traditional Redux to Redux Toolkit can be done gradually. You don\'t need to rewrite everything at once.
3595
3697
3596
3698
**Migration Strategy:**
3597
3699
@@ -3937,7 +4039,7 @@ MVC can be interpreted or modified in many ways to fit a particular framework or
3937
4039
* Separating the presentation from the model: enables implementation of different UIs and better testability
3938
4040
* Separating the controller from the view: most useful with web interfaces and not commonly used in most GUI frameworks
3939
4041
3940
-
In general, MVC makes no assumptions about whether data flow within an application should be unidirectional or bidirectional. In server Side, MVC is good, but in Client side most of the JS frameworks provide data binding support which let the view can talk with model directly, It shoudn\'t be, Many times it become hard to debug something as there are scope for a property being changed by many ways.
4042
+
In general, MVC makes no assumptions about whether data flow within an application should be unidirectional or bidirectional. In server Side, MVC is good, but in Client side most of the JS frameworks provide data binding support which let the view can talk with model directly, It should not be, Many times it become hard to debug something as there are scope for a property being changed by many ways.
3941
4043
3942
4044
**2. Flux:**
3943
4045
@@ -4233,7 +4335,7 @@ import CommentReducer from './CommentReducer';
4233
4335
*/
4234
4336
4235
4337
constappReducer=combineReducers({
4236
-
/* your app's top-level reducers */
4338
+
/* your app\'s top-level reducers */
4237
4339
users: UsersReducer,
4238
4340
orders: OrderReducer,
4239
4341
notifications: NotificationReducer,
@@ -4364,7 +4466,7 @@ class TodoListContainer extends Component {
4364
4466
4365
4467
const { dispatch } = props
4366
4468
4367
-
// Here's a good use case for bindActionCreators:
4469
+
// Here\'s a good use case for bindActionCreators:
4368
4470
// You want a child component to be completely unaware of Redux.
4369
4471
// We create bound versions of these functions now so we can
4370
4472
// pass them down to our child later.
@@ -4381,7 +4483,7 @@ class TodoListContainer extends Component {
4381
4483
// Injected by react-redux:
4382
4484
let { dispatch } =this.props
4383
4485
4384
-
// Note: this won't work:
4486
+
// Note: this won\'t work:
4385
4487
// TodoActionCreators.addTodo('Use Redux')
4386
4488
4387
4489
// You're just calling a function that creates an action.
0 commit comments