While React's declarative style and composability are great, and its ecosystem reigns supreme, I really dislike all the tiny issues that one has to learn to deal with(referential equality for hook dependencies, the side-effects of batching setState calls, figuring out when a specific useEffect call is called, the fact that useMemo and useCallback don't provide semantic guarantees that one can rely on to avoid rerenders, ...etc).
I've been meaning to try out some "truly reactive", vDOM-less libraries like Svelte, SolidJS, and Sycamore-rs [1] for a while now. Today, I ran into a library that ports all of SolidJS's API to React, so that one can still use React, but in a truly reactive way, and it's written by the author of SolidJS himself! I haven't tried it out but I was so excited that I had to share :)
The advantage that I'm hoping this library realizes is that one can use the humungous React ecosystem, while coding in a truly reactive way.
1 comment
[ 2.8 ms ] story [ 11.0 ms ] threadI've been meaning to try out some "truly reactive", vDOM-less libraries like Svelte, SolidJS, and Sycamore-rs [1] for a while now. Today, I ran into a library that ports all of SolidJS's API to React, so that one can still use React, but in a truly reactive way, and it's written by the author of SolidJS himself! I haven't tried it out but I was so excited that I had to share :)
The advantage that I'm hoping this library realizes is that one can use the humungous React ecosystem, while coding in a truly reactive way.
[1] https://github.com/sycamore-rs/sycamore