Skip to content

hariprasadoo/ReduxInNextJs

Repository files navigation

Redux Toolkit In NextJs

In Next.js 13, setting up Redux Toolkit is a breeze. Redux Toolkit is a powerful toolset that simplifies the process of managing state in Redux applications. To integrate Redux Toolkit into your Next.js project, follow these steps:

Process

  • Process 1: Setup the Redux Store.
  • Process 2: Define Typed Hooks.
  • Process 3: Define Custom Provider
  • Process 4: Provide the Redux Store to layout.tsx in the project
  • Process 5: Create Redux State Slice and Action Types
  • Process 6: Add Slice Reducer to the Store
  • Process 7: Use Redux State and Actions in the Next.js 13 page inside Directory

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

  • Node.js
  • Next.js (version 13)
  • npm

Installation

  1. Clone the repository:

run the following command

  git clone https://github.com/hariprasadoo/ReduxInNextJs.git
  1. Install the dependencies:
  npm install

Development

To start the development server, run the following command:

  npm run dev

Build

To build the production-ready optimized version of the application, use the following command:

 npm run build

Acknowledgments

Inspiration source or credits (if any).

License

This project is licensed under the MIT

Contact

If you have any questions or suggestions, feel free to contact me at dahal.harry1@gmail.com.

About

Set up and use Redux Toolkit and RTK Query in your Next.js 13.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors