It's not reactivity that's the problem, it's React. The way svelte and solid.js do it is simpler. Things only run once unless explicitly made reactive. And there is no virtual DOM.
Unpopular opinion: I took a look at Svelte. Was immediately disappointed that I can’t just drop it in an existing website.
All these frameworks assume you’re writing stuff from scratch. Most commercial software, both internal and external facing, have legacy to deal with.
Even with a brand new app, you have to succumb to npm/webpack/babel stuff. It feels like building a castle on stilts. Inspires confidence, it does not. Back to jQuery I guess.
You're looking for Vue. It calls itself The Progressive Framework and the title fits.
The thing about Vue is that it spans the whole spectrum of a simple <script> tag à la jQuery all the way up to a fullstack app with server side rendering, jsx & typescript support, IDE plugin, browser debugger, and build system.
But the *great* thing about Vue is that you can start off with the simple <script> tag and add it to an existing project (built with other frameworks) and slowly build up to more Vue features if/as you need them.
It's learning curve is also incredibly smooth so you can ramp up the features to your specific needs.
Some examples:
- There's multiple well respected guides and video series out there to port old legacy enterprise Angular.js applications to Vue.js bit-by-bit until only Vue.js remains
- Laravel (the well known backend php system) has decided to use Vue for it's front-end integrations.
- Wikimedia (the foundation that runs Wikipedia) has decided to adopt Vue.
You can just drop it in. The API allows you to expose any components or code you compile which can be called/created/deleted as regular javascript objects
Maybe checkout lit-html[0]. It doesn't use a virtual DOM, it can be dropped into existing projects, it powers Google's Lit Elements[1], and if you want stateful components you can implement yourself pretty easily[2].
I just visited their web page and I had to laugh at the fact that preact is faster than React in their benchmarks... I used preact for hobby projects to avoid the horror of JS build systems. I didn't know that this is going to get me more performance.