nowfound

Life & fun · April 8, 2026

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.

Visit thales.me ↗Alternativestop 5% of April 2026

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 →

More life & fun this month

the category →

Source: Show HN post ↗

Launched alongside, April 2026

the whole month →
  • Brila▲1,364

    One-page websites from real Google Maps reviews

    AI · Apr 2026 · brila.ai

  • 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

  • AI meeting notes: now bot-free, in ChatGPT & Claude + more

    AI · Apr 2026 · fathom.ai

  • 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