Nope, my first sentence, pack the JavaScript stuff on the scripts lib and let Java/.NET build take care of the rest, as it belongs on a proper full stack SSR framework.
Those days are still here, and now getting better. All these server-side frameworks have figured out their own component-based UI frontends. Now you can get all the same design advantages without the JS overhead and nonsense.