Practical Enterprise React by Devlin Basilan Duldulao & Ruby Jane Leyva Cabagnot

Practical Enterprise React by Devlin Basilan Duldulao & Ruby Jane Leyva Cabagnot

Author:Devlin Basilan Duldulao & Ruby Jane Leyva Cabagnot
Language: eng
Format: epub
ISBN: 9781484269756
Publisher: Apress


Redux Toolkit

Redux Toolkit is an opinionated way of writing Redux because the community realized that developers have each their implementation of a React-Redux app.

Before the creation of Redux Toolkit, or RTK for short, there’s no standard guideline for implementing or configuring Redux in a React application. It already comes preinstalled with the useful libraries such as Redux, Immer, Redux Thunk, and Reselect.

Here’s a short description of each library:

Immer: Handles immutability in stores.

Redux: For state management.

Redux Thunk: A middleware that handles async actions. Default option available with RTK, but you can also use Redux-Saga if you want to.

Reselect: Simplifies reducer functions. Allows us to get just a slice out of the global store.

Figure 9-4 is the website of Redux Toolkit if you want to learn more about RTK in detail.

Figure 9-4Redux Toolkit website



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.