Why use a framework at all?
Why use a framework at all?
Typically dashboards will be accessed on a desktop in an office setting with good internet, so initial load and asset size isn't a huge issue. Then you get benefits like client side routing which feels snappy, and live updating widgets is pretty simple. Of course it's a matter of opinion though.
I think what you mean is that elements shared across pages (the header, the navigation bar etc) do not have to be sent again.
But those are very small anyhow. And you could bring the size down to zero by making them web components. Web components are cached along with the JS that defines them.
Things get worse when you bring Javascript into the mix. You need to create Javascript code with your template engine without any Javascript toolchain.
Hard no to the string concat approach for me.
What do you mean by "no mapping to Javascript"? It is not as if React is part of the Browser API.