0PricingLogin
React Native Academy · Lesson

Setting Up the Redux Store and Provider

Install @reduxjs/toolkit and react-redux, configure the store with configureStore, and wrap the app in a Provider to make the store available globally.

What Is Redux Toolkit?

Redux Toolkit (RTK) is the official, recommended way to write Redux logic today. It eliminates the boilerplate of classic Redux by providing utility functions like configureStore, createSlice, and createAsyncThunk. RTK includes best practices by default, such as Immer for immutable updates and Redux DevTools integration.

Installing the Required Packages

To get started with Redux Toolkit in React Native, you need two packages: @reduxjs/toolkit provides the core utilities, and react-redux provides the React bindings. Install them with a single command and they are ready to use immediately.

npm install @reduxjs/toolkit react-redux

All lessons in this course

  1. Setting Up the Redux Store and Provider
  2. Creating Slices with createSlice
  3. Reading State with useSelector
  4. Async Thunks with createAsyncThunk
← Back to React Native Academy