2024-03-16
3740
#nextjs
Madars Bišs
103513
Mar 16, 2024 ⋅ 13 min read

Understanding state management in Next.js

Madars Bišs Madars Bišs (aka Madza) is a technical writer. In his spare time, he loves to explore new topics and contribute to open-source web development.

Recent posts:

Rxjs Adoption Guide: Overview, Examples, And Alternatives

RxJS adoption guide: Overview, examples, and alternatives

Get to know RxJS features, benefits, and more to help you understand what it is, how it works, and why you should use it.

Emmanuel Odioko
Jul 26, 2024 ⋅ 13 min read
Decoupling Monoliths Into Microservices With Feature Flags

Decoupling monoliths into microservices with feature flags

Explore how to effectively break down a monolithic application into microservices using feature flags and Flagsmith.

Kayode Adeniyi
Jul 25, 2024 ⋅ 10 min read
Lots of multi-colored blue and purplish rectangles.

Animating dialog and popover elements with CSS @starting-style

Native dialog and popover elements have their own well-defined roles in modern-day frontend web development. Dialog elements are known to […]

Rahul Chhodde
Jul 24, 2024 ⋅ 10 min read
Using Llama Index To Add Personal Data To Large Language Models

Using LlamaIndex to add personal data to LLMs

LlamaIndex provides tools for ingesting, processing, and implementing complex query workflows that combine data access with LLM prompting.

Ukeje Goodness
Jul 23, 2024 ⋅ 5 min read
View all posts

4 Replies to "Understanding state management in Next.js"

  1. Nice, simple and helpful article.

    I have one suggestion. In the first example I would recommend using the
    setState(prevstate => prevstate + 1)
    syntax , because in more complex scenarios, where the setState is called from multiple places, the result not always what we expect. Although in this simple Example it will work perfectly fine.

  2. I think i’m missing something. How is any of this unique to NextJS? Most of this is just React specific hooks?

    1. well nextjs is built on top of react and most of the things are common, It just adds some more optimization logic that is all.

Leave a Reply