[HN Gopher] Show HN: Tired of logic in useEffect, I built a clas...
       ___________________________________________________________________
        
       Show HN: Tired of logic in useEffect, I built a class-based React
       state manager
        
       Author : thalesfp
       Score  : 5 points
       Date   : 2026-04-08 21:53 UTC (1 hours ago)
        
 (HTM) web link (thales.me)
 (TXT) w3m dump (thales.me)
        
       | mjfisher wrote:
       | Just to sanity-check my reading of this:
       | 
       | - Zustand exposes itself as a hook.
       | 
       | - MobX does that observer-wrapper thing
       | 
       | - Snapstate instead has an explicit writing step (`scoped()`) at
       | the bottom of a component
       | 
       | If so, I really quite like that. Kudos!
        
       | igor47 wrote:
       | All the examples are fetching data from a server, and in such
       | cases I think tanstack query already does all the hard part. I
       | feel like people under-use react query and put too much state in
       | their FE. This might be relevant if your app has some really
       | complicated interactions, but for most apps they should really be
       | a function of _server_ , not client, state. Of course this exact
       | reasoning is why I moved off react altogether and now use htmx in
       | most of my projects
        
       ___________________________________________________________________
       (page generated 2026-04-08 23:00 UTC)