when new to React and vue.js frameworks. when learning how to build simple SPA from courses, but there are no courses for MPA/SPA.
For example when I need website with 3 parts: Registration form, Login form, Dashboard
I don’t want to use SPA and Router. to have those 3 sections served by back-end as 3 different websites. If you asking why, it is because I see this technique on almost every React/vue.js powered websites (Instagram, AirBnB, Qualitista, …)
Can you please explain to me what is best practice and how to implement this and if its worth making? Or am I supposed to just make backend API + SPA no matter what.
I don’t know too much about this topic in particular. But after a little searching, this Universal Multi-Page React App looks like it might be a tutorial to do what you’re interested in? Also found a little info in this Reddit post about Multi-page React Sites.
Also here’s some info about how Vue.js does it from I’mOnlyVueman with a couple articles I found on the topic.
Companies use server-side rendering or preloading to bypass the
limitations of vue.js with regard to SEO. Google cannot crawl Vue
components, so serving them from the server allows them to be indexed
Vue.js Server Side Rendering Guide
Server Side Rendering from the Vue.js docs
If you were to ask me a good example to learn multiple page apps I wouldn’t go to React/vue.js to do this, I’d use MVC. Microsoft has tons of tutorials if you’re interested. Create a web app with ASP.Net Core and MVC
Hope this helps!