Redux | thunk handles Google Authentication async logic

In Redux we often use middleware to handle asynchronous behavior, so that we can add different asynchronous logic to the store, and gradually we have developed various kinds of middleware. ...

September 2, 2022 · 5 min · Anila

Redux | Write localStorage using middleware

Basically, we manage global state through store, action, reducer in redux. We can define our action and reducer first, dispatch action through synchronous operations, and then processed by the reducer to update the store so that components can access the state from the store. ...

August 20, 2022 · 3 min · Anila

React | Create Redux Toolkit in React Hook

What is Redux? Redux has several important concepts: store, action, and reducer. Redux is used to manage the state of JavaScript apps. It is used to manage the state uniformly, containing the “global” state in a single store, and the state of the entire application will be stored in the store in the form of an object tree. This state is read-only, through pure reducer functions look at those actions and return an immutably updated state, the only way to change the state is to change the state in the store through dispatch actions....

August 10, 2022 · 6 min · Anila