• Resolved Ryan Clark

    (@ryan1775clark)


    Currently, I’m using a Local App to deploy our wp site locally to test your plug in. It finds our app and I followed the steps ‘including running the build on the local container’. The react app runs fine for one of our team members, but for the rest of us it looks like the react app crashes before it can render to the dom tree. We also tried running the plugin in a docker container to the same effect. There are no differences between our repo code or the wordpress base we are using. The react app we are using is at v17 and I was wondering if a babel npm could be causing the conflict on compile?

    Note: We are trying to use multiple of these Reactpress apps to slowly convert our frontend to a micro frontend structure until we are ready to completely detach the wp head and use it solely as an api. I like your implementation of adding them to a page, so we can use them as slugs. I found the page that your plug in generated and tested with the default build static and it fails, but I also tested with a html that loads react which renders fine.

    Do you have any recommended versions for our react app?

Viewing 1 replies (of 1 total)
  • Plugin Author rockiger

    (@rockiger)

    Hi @ryan1775clark, the latest react version I use is 17.0.2.

    When you say it works for our team members, do you mean it’s running on localhost with yarn start?

    If your app doesn’t work inside WordPress, could you test the build with another static server like serve?

Viewing 1 replies (of 1 total)
  • The topic ‘React App not rending to WP page root div.’ is closed to new replies.