WP React is a theme for Wordpress that is tasked with bridging a classic React app and Wordpress.
Download this repo as a .zip
and upload it to your wp-content/themes/
folder.
Activate through the Wordpress Admin Dashboard. Once activated, a nav item will pop up that will have the available options.
Create a src
folder and hit yarn start
or npm start
!
Everysingle page is configured in such a way, that when fetching, if ?data-only
is added, it will only fetch the JSON data required for the page.
Run yarn build
or npm run-script build
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.