Zustand

Frontend

Zustand is a small state management library for React apps, and I use it for carts, filters, user choices and settings.

How I use Zustand

State is available to any component without passing props down and without much boilerplate.

The client gets an app that remembers what the user picked while they move between pages: the cart contents, the selected restaurant or filters. The code is shorter and easier to read, so later changes are simpler.

In practice I create separate stores by topic, for example for sign-in, settings and the cart, and when needed I persist part of the state in the browser so it survives a page refresh. On this portfolio Zustand holds the sign-in state, settings and admin profile, and in BrzoJelo the cart and selected restaurant.

I choose Zustand when React Context gets awkward and Redux is too much for the size of the project. For server data I pair it with TanStack Query.

Used in: BrzoJelo, gradovi.rs, this portfolio.

Projects using Zustand

Websites and apps I built where Zustand was used.

  • gradovi.rs — Business Directory with Microsites

    gradovi.rs — Business Directory with Microsites

    My own platform: a business directory for the cities and municipalities of Serbia. A business signs up and gets its own microsite with a description, gallery, opening hours and contact form, and visitors find it by searching by city and category. Besides the free tier there are paid plans with more photos, reviews, visit analytics and a featured spot in the category, with up to 35% off for paying in advance. It has an admin panel for businesses, moderated reviews, invoices and payment processing. About 310 indexed pages, built with React and Supabase with 25 server functions.

  • BrzoJelo — QR Ordering, Kitchen and Delivery for Restaurants

    BrzoJelo — QR Ordering, Kitchen and Delivery for Restaurants

    My own platform for small restaurants and fast food. A guest scans the QR code on the table and, with nothing to install, browses a menu with photos, allergens, sizes and extras, orders and follows the order status live. The kitchen works from a screen with cards by status, and staff sign in with a PIN. For delivery there is a driver panel, GPS tracking on a map, chat and a photo as proof of delivery. From the admin panel the owner manages the menu, QR codes for every table, stock, analytics with PDF and CSV export and an activity log. The core is free and other modules are switched on as needed. Built with Next.js and Supabase.

Frequently asked questions about Zustand

What is Zustand in React?

Zustand is a library for global state in React apps: data such as a cart or settings is kept in one place and available to every component. It has a small, simple API and doesn't need a provider wrapped around the app.

Zustand or Redux: which should I choose?

For most small and medium React apps Zustand is the simpler choice, because it needs less code and setup. Redux Toolkit makes sense for large teams and apps that need strict conventions and tools for tracking every state change.

Do you use Zustand in your projects?

Yes, I've used it in BrzoJelo, gradovi.rs and this portfolio. It handles the cart, the selected restaurant, filters, sign-in and user settings.

How much does a website or app built with Zustand cost?

It depends on the type of project: Custom Web Application from €500; Digital QR Menu from €40. These are starting prices; you get the final price and timeline in a written offer by email.

All skills →