DEV Community

Discussion on: How to use React inside a Wordpress application ?

Collapse
 
adepachter profile image
Arno De Pachter

@julien amazing article!
@victor and others with the same problem:

  • in the package.json: "homepage": "/wp-content/plugins/my-react-app/frontend/build",

  • in the .php you created it only gives out the correct path when Wordpress is in development, the function my_react_app_init() doesn't work properly, to make things easier I changed the initial path to /frontend/build/static