Derry Uk
Derry Uk

Reputation: 111

How do i handle state management while working with next js

Í am A newbie working with the MERN stacks, I just managed to build an ecommerce website from scratch,but then I hear nextjs is good for server side rendering which make our web app load faster and also seo friendly, I looked into the documentàtion, but I am yet to understand how I mange state in next js...càn I use redux,and how? Thanks

Upvotes: 1

Views: 5053

Answers (1)

enoch
enoch

Reputation: 3123

It's easy to integrate redux into Next.js

These examples come from the official Next.js repo

with redux

with redux-toolkit

with redux-thunk

if you want to manage state with redux on server-side, you can follow this example with next-redux-wrappper

Upvotes: 5

Related Questions