Ask HN: What is wrong with jquery and server side rendering web pages?
1 コメント
I've been wondering the same thing.
One good thing about the SPA approach is that the backend is not coupled with the frontend.
With Razor you directly interact with your model and put logic in the view.
If you just have an API backend (Web API in this case) the frontend can do whatever it wants, so pure frontend designers can just go ahead with what they know, mock the API and write tests without the need for the backend etc.
I think razor + jquery is usually good enough to make even complex pages. If I have to take care of a lot of variables maybe I use knockout.js. But that's it. Lately I was reading about react/vue and the SPAs where the routing and everything that I do so easy and well with the back-end is now in the front? and they are supposed to completely replace razor? what is the improvement for me as a dev to replace razor or use an SPA approach?