javascripthtmlminifiedjs

How To Create Website With No HTML In Source Code


I've wondered this before, but never gotten an answer. Then just today I came across another site: http://ruralcoz.com/ with no html in the source code. Only a minified script. Does anyone know how the developer built this site, and why they chose to replace all the html with javascript? What's the benefit of this? How is this done?

Thanks!


Solution

  • That's a React app. React uses JavaScript to create everything on the page and then loads it into the one root div on the page.

    There are advantages to doing it this way and you can read more about it here