All Reviews

Micro State Management with React Hooks: Explore custom hooks libraries like Zustand, Jotai, and Valtio to manage global states

By Daishi Kato

Asked to name most prominent people working on React state, you would likely come up with Dan Abramov (Redux) and Michel Weststrate (MobX and Immer). But Daishi Kato should absolutely be on that list. He has created more(!) than 4 major libraries for React state, including Zustand, Jotai, Valtio and React-Tracked. And now he has written a book about React State, which I was eager to read.

It was really interesting to get a guide from a creator of state libraries on approaching React state. He has deep insights on how to create state code that is performant, ergonomic and clear. Often when people approach state in React they end up with very inefficient (and difficult to optimise rendering) code or they use some very verbose and ossified approach like Redux. Daishi, has shown, both in this book and in his libraries how we can actually have ergonomic and performant state code.

If you are intermediate or advanced React developer you should definitely read this book. The chapters are largely independent essays so you can dip in and out of the book. Even if you don't end up using one of his libraries you will likely learn a lot.

On writing reviews

I think it is worthwhile reviewing things, as Socrates maybe said "the unexamined life is not worth living". Here I share some reviews that I think are of general interest. I try to keep things short and focused on what seems like the less obvious aspects. But I write many, many more using an app I made Micro Reviews. Using this app I capture reviews of all sorts of things, like books, films, TV, food, drinks, coffee and more. These reviews are largely intended to be private, notes to my future self. This guides future purchases and serves as a journal of experiences.

Micro Reviews uses Apple's iCloud to allow for data sync between devices, yet making sure your data remains private (unlike in many Apps the developer, in this case me, can never see it). With tags and categories you can keep your reviews organised. You can also search your reviews and export them to a CSV file (so you do things with the data in Excel).

Example screenshots from Micro Reviews

Download Micro Reviews for iPhone, iPad and MacOS. (It is free!)

Download from Apple App Store for iPhone and iPad

You can also learn more about Micro Reviews but why not just download it (it is free and a small install size).