Table of Contents
If you prefer watching a video
Try CodeMix for fast and productive React Development.
Single page applications
- In Single page applications, we only get back single HTML file by the server once.
- In Multi-page apps, we get back multiple HTML pages, where each page has content for given Router.
- In Multi-page apps, we only use React to create widgets.
- For example, individually created components which we dump to that page but not entire page is managed by React, you can see this in many apps.
ReactJs Control over entire Applications
In single page applications, our page is built with components and every component is a React Component and also the entire page is managed by root React component and it’s just under React control.
In the Multipage apps in second hand, we split up our components but a lot of pages are going to be normal HTML pages, and widgets we dump in like an Image gallery that is managed by React, so the entire page is not under React control.
The Better approach
Here you are not just showing spinners page where a user can’t do anything but a page which is still a reactive web app.