We are excited about React Compiler, aren't we? I just remembered that my first OSS library in JavaScript was a JS-to-JS compiler! Funny how things come around.
I think it's the first time I'ved used a reducer in React in like 3 years (last time was when I used Redux). I always avoided them because of how boilerplate-y they were, but honestly, they're awesome considering the alternative of a whole bunch of useState and useEffect spaghetti.
@dopey_kun For a game, I'd definitely just go full Redux, because of the convenience of persistence and tab-syncing. It's just a little annoying to get both working together.
@dopey_kun A player may accidentally have the game already open in multiple tabs, and expect the game to be exactly the same in each one.
If you just use localstorage, the save state may accidentally get overwritten by old state from an old tab. redux-state-sync forces old tabs to update.
Of course, it might cause other issues if you don't do it carefully too, but it should be fine if the entire UI runs on redux
Just published our React RSC framework, Waku v0.19.2! Fixed various issues and added Netlify support and AWS Lambda support (by aheissenberger!) There are still some known issues and we are working hard on them.
@Blue_Jersey I've assumed it's heavy marketing from Vercel trying for growth to justify their hundreds of millions in funding, and multi-billion valuation.
@daishi sorry, see my response. I think it isn’t as slow as I thought. There is some extra work happening, but I think your approach is the cleanest if you need a custom equality function
Very hacky but surprised this could work. Literally assigning ref to a parent node outside of a component, else falling back to original node, besides merging multiple refs into a single ref 😂🤪💥
@schizanon I get that feeling sometimes. Been doing a lot of backend lately and it's like... so simple compared to the state space of a user interface. (Obviously there is complexity in places, and you have to deal with horrible stuff like Docker, but hey.)
I haven’t touched frontend until recently and, I have to admit, #ReactJS is pretty neat. Strong types with some messaging patterns I’m used to seeing with weaker type systems
:react:
A new fine-grained reactivity state manager
Legend-State:
There is a new state manager for react, that promises to be fast; provides fine-grained reactivity; allows global storage & allows state storage in local storage.