Integrate Redux Toolkit in Nextjs 14+ - A Complete Guide

preview_player
Показать описание
How to use reducer actions in components.

Repo Link:

01:10 Install dependencies
02:00 Create store
03:10 Create post slice and reducer actions
08:30 Create client component
13:30 Create store provider and wrap it around all components
17:30 CRUD posts using RTK

React tutorials:

Contact us for development services:

#nextjs13 #nextjs #redux #reduxtoolkit #rtk #reactjs
Рекомендации по теме
Комментарии
Автор

I have a question. if we make the provider file to use client, then all of the components in the application are inside that passed as children. then wouldn't it make our whole application client side ??? that really removes the benefit of using next js ?

HaroonCodes-fjmp
Автор

simply awesome first video jo smajh me aayi or work bhi kar rahi h!! thanks dude

musiclovers
Автор

your explanation of using asynchronous code making an api call was very simplistic, you need to declare the thunk in the redux file to make the ui simpler and don't mix code, component are only to show information, they should not understand anything about make external request or something similar

haroldpepete
Автор

Hi guys, in this video I created an app/posts/page.tsx file to import it in app/page.tsx file as a child component. It will become a route as well because of file name (posts/page.tsx).
So, a better practice would be to change the name of this file to something post.tsx or simply move this folder(posts) outside app directory. Happy learning and do subscribe 👍

ProgrammingwithUmair
Автор

Can the redux store shared with client and server components in Next 13?

GouravAmbekar
Автор

In client component it's working fine, but if we update the some states eg(counter) it not updated in server pages any reason how to fix that ?

Robin-xe
Автор

thank sir for making this usefull video

HarshSingh-krci
Автор

Good tutorial. Unfortunately, you're using type "any" a lot which defeats the purpose of Typescript. Like you could have created a typed version the Dispatch and Selector using hooks. And also, during the initialState, you could have defined a type there instead of using any.

yasserhy
Автор

Very informative, which global state management do you think is a better choose for a big project development in Next 13.4 . zustand or redux toolkit

abhilashm
Автор

Can you explain how to use Redux Toolkit or React Redux in Next.js? After implementing it, our entire application can be either client-side or server-side. I'm unclear on how to properly use it in Next.js, so could you clarify my doubts? Also, please explain the advantages and disadvantages of using Redux in Next.js.

I've noticed that there are tutorials on YouTube not covering the use of Redux in Next.js. Is Redux unnecessary in Next.js, or is there a reason it's not widely used? If a larger application requires Redux in Next.js, how is it implemented?

I'd appreciate it if you could address these concerns in your next video. I've commented multiple times on other channels, but I haven't received any responses. If you can create a video on this topic, it would be immensely helpful, as I've been struggling with these questions, and it seems others may have similar doubts. Thank you!

deepmane
Автор

Great video. But when you are using TypeScript please don't use 'any'.

md.piyashhasan
Автор

with out using typescript how i connect redux toolkit into next js 13.4 plz ans

vijaynarola
Автор

why video calls Integrate Redux Toolkit in Nextjs 14+ - A Complete Guide but you are using version 13.4?

my_area-fenix
Автор

but how can we persist the state? Can you please Explain it?

muhammadshafqatrasool
Автор

How to use react redux with server actions .?

prafullb