My point is, you're going to pick "the wrong framework" regardless of your choice. There's going to be issues one way or the other.
Perhaps the safest way is something like htmx, where the heavy lifting is done by the backend, you're stuck with that regardless, and if you need to do a fork, then it's a minimum of JavaScript to maintain.