Detach front-end and use WP Headless

I would think you have two options:

  1. Use a WordPress theme which just loads your React files
  2. Use an index.html which loads your React files

There should not be a lot of NGINX configuration needed. Just make sure index.html comes before index.php, and put the index.html file in the web folder.

None of that is tested, but if you’re just kicking off JavaScript, no need to overthink it.

2 Likes