Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is single page application? [closed]

what is single page application (SPA)?

i'm use to react by 'create-react-app'

that is SPA ?

like image 369
Chun-Joo Park Avatar asked Nov 15 '25 19:11

Chun-Joo Park


1 Answers

The simplest answer is an SPA or Single Page Application is a web app that loads a single HTML page and all the necessary assets (such as JavaScript and CSS) required for the application to run. It then uses dynamic techniques (AJAX) to update just parts of that page, instead of making a round trip to the server to create new pages.

A benefit is that you only transfer the minimum amount of data needed to make the update changes after the main page has been loaded. The main page loads all the content (js, css, etc) that the SPA needs to run so the initial page load can take longer, but after that it is very fast.

Popular ways to handle the dynamic content aspect is with frameworks or libraries like Angular or React that handle a lot of the frontend heavy lifting.

Yes, 'create-react-app' is a tool for creating a React SPA.

like image 110
Kevin Hunt Avatar answered Nov 18 '25 20:11

Kevin Hunt



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!