Tired of logic in useEffect, I built a class-based React state manager
React is excellent at rendering UI. I built Snapstate because I wanted business logic to live somewhere else.
Tired of logic in useEffect, I built a class-based React state manager launched on April 8, 2026 with 27 votes, #958 of 21,248 launches that month and more than 95% of that year's launches.
In plain words
A class-based state manager for React that simplifies useEffect logic. Built to address complexity in functional component state handling, this tool is designed for React developers who prefer class-based patterns or want an alternative approach to managing side effects and state. The solution provides a structured way to organize state management without relying on hooks-based logic.
written from the facts on this page · September 2026
From the sources
TL;DR: I built Snapstate to move business logic out of React components and into plain TypeScript classes. The result: stores you can test without React, components that only render, and a cleaner boundary between UI and application logic. React is excellent at rendering UI. It's less convincing as the place where the rest of the app should live. Over time, a lot of React codebases drift into the same shape: data fetching in useEffect , business rules inside custom hooks, derived values spread across useMemo , and mutations hidden in event handlers. The app still works, but the boundaries get blurry. Logic that should be easy to test or reuse ends up coupled to render timing, hook rules,…from thales.me
Does a similar job
all alternatives →
- TSThe simplest React state manager now at stable release2021 · simpler-state.js.org · ▲96
The simplest app state management for React

Simple way to share state using React Hooks and Context2019 · github.com · ▲131React Context + State. Contribute to diegohaz/constate development by creating an account on GitHub.
SimpleR State – simple state management for React2021 · github.com · ▲43The simplest app state management for React. Contribute to arnelenero/simpler-state development by creating an account on GitHub.

More life & fun this month
the category →
A free city-building game in your browser. You are the mayor. You know what the city needs. Now get it past the zoning board, the neighbors, the appeals court and the next election.
Life & fun · 24h ago · permit.petercai.com
- IV
Life & fun · 13d ago · tanzaniaeducationproject.org

Turn a phone, tablet or TV into a sign. Type a message and it fills the screen: welcome signs, timers, Wi-Fi passwords and more. No app, no account, free.
Life & fun · 14d ago · bigwords.page

Play a free virtual guitar online with your keyboard or by touch. Slow songs down and see every chord, string and strum. Acoustic, classic, electric and bass.
Life & fun · 8d ago · guitoro.com

Carrier settings from iPhone, Pixel and Galaxy firmware, decoded and compared: APNs, VoLTE, 5G and Wi-Fi Calling per carrier, and what each build changed.
Life & fun · 12d ago · carrierexplode.com

Life & fun · 22d ago · space.bl2.net
Source: Show HN post ↗
Launched alongside, April 2026
the whole month →
- AG
Thought the resources for GPU arch were lacking, so here we are
Life & fun · Apr 2026 · jaso1024.com

Built a ~9M param LLM from scratch to understand how they actually work. Vanilla transformer, 60K synthetic conversations, ~130 lines of PyTorch. Trains in 5 min on a free Colab T4. The fish thinks the meaning of life is food. Fork it and swap the personality for your own character.
AI · Apr 2026 · github.com


I made a laptop stand out of solid concrete, in the style of brutalist architecture, with themes of urbex and urban decay
Life & fun · Apr 2026 · sam-burns.com

With social media and now AI, its important to keep the indie web alive. There are many people who write frequently. Blogosphere tries to highlight them by fetching the recent posts from personal blogs across many categories. There are two versions: Minimal (HN-inspired, fast, static): https://text.blogosphere.app/ Non-minimal: https://blogosphere.app/ If you don't find your blog (or your favorite ones), please add them. I will review and approve it.
AI · Apr 2026 · text.blogosphere.app