Re:The balance has shifted away from SPAs
by purplerabbit on Saturday May 21, 2022 @02:21PM
(#31460419)
What do you mean by “static exports from WordPress”? (never used WordPress before)
Re:The balance has shifted away from SPAs
by linkjuice4all on Saturday May 21, 2022 @05:34PM
(#31462088)
The Simply Static[0] plug-in exports all of your WordPress pages and assets into a directory that you can deploy. It basically renders the entire site and takes a snapshot of the rendered HTML.
You'll lose dynamic features (but ideally you'll be doing that stuff in your React app) but the static site is very quick and you'll avoid some of the security headaches of a public WordPress instance.
React continues to get better and is great for highly interactive and customized experiences. Browsers are also making it more usable so it's just up to the front end devs to make sure history state and other stuff is accounted for.
WordPress continues to be terrible but accessible to the masses for your landing page and blog stuff. That means your design and content team don't get bogged down in the app dev process and you don't have React slinging fixed/static content. They can just bash stuff around in WordPress and export the static pages for a quick deploy.