M
M
mikor2017-08-24 12:41:45
JavaScript
mikor, 2017-08-24 12:41:45

What is the best way to do SPA vs MPA?

Friends, I have a question for you in the spirit of "how is it better?", I have a large saas project, I want to make the server part as an API and the front on React, but I don't know how to organize the front. I originally wanted to make a SPA, but it stopped the fact that heavy style files / scripts become + many routes (and problems with server rendering?). Now I'm thinking of making my own "entry point" for each page, where, in addition to the vendors, manifest files, there will be one script file, the styles of the desired page and nothing more. But here (as I think) the problem is the organization of beautiful urls and, in general, the readability of the code.
What do you advise? Maybe read something? Links to examples of good architecture? Throw some thoughts please, I'm a new person in react, don't throw stones

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita Dergachov, 2017-08-24
@mikor

Use react router

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question