Just fetch the pre-rendered HTML fragment and put into the page. Done.
And the good thing is that you can render a server side component either as part of a full page load or separately for a dynamic update.
But if you have decided to do frontend rendered templates, then I agree, pick one of the popular frameworks from the start of the project.
Vue is IMHO a better pick than React, Vue has better ergonomics and is just better how everything is tied together. Vue is a well designed framework.
Just fetch the pre-rendered HTML fragment and put into the page. Done.
And the good thing is that you can render a server side component either as part of a full page load or separately for a dynamic update.
But if you have decided to do frontend rendered templates, then I agree, pick one of the popular frameworks from the start of the project.
Vue is IMHO a better pick than React, Vue has better ergonomics and is just better how everything is tied together. Vue is a well designed framework.