• Resolved esyt

    (@esyt)


    Hello,

    Thank you for development efforts the application is great !
    I’m trying to integrate my react app to my word-press website. Unfortunately I cannot access npm from my webhost. Therefore I can only use my build folder. I tried several times without success. That is why I ask the question directly to you :

    – Is it possible to integrate an already build app with react-press without node/any interaction with the command line (yarn, npm, serve..) ?

    Thank you very much !

    • This topic was modified 3 years, 2 months ago by esyt.
    • This topic was modified 3 years, 2 months ago by esyt.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author rockiger

    (@rockiger)

    Hello @esyt,

    you can use it without npm on your live system. But you need a local WP installation and node/npm there.

    The workflow is the following:

    1. Install ReactPress on your local WordPress installation
    2. Use create-react-app from the command line in the apps folder shown in ReactPress
    3. Reload ReactPress page and give the app a slug
    4. Develop your React app
    5. Build the app
    6. Install ReactPress on live WordPress site
    7. Create the same folder there (no need for create-react-app) there
    8. Upload the build folder of your React app into the created folder.
    9. Reload ReactPress page and give the app the SAME slug.

    You should see the React app live on the created page.

    Hope this helps.

    PS: Don’t forget to review ReactPress if you like it.

    • This reply was modified 3 years, 2 months ago by rockiger.
    • This reply was modified 3 years, 2 months ago by rockiger.
    • This reply was modified 3 years, 2 months ago by Yui.
    Thread Starter esyt

    (@esyt)

    It now works ! Thank you !
    I have one last question : I’m trying to integrate it with elementor, do you think it would be possible to call a component within an html tag from another page ? Or to modify the actual react page with elementor ?

    Thank you for your effectiveness !

    Plugin Author rockiger

    (@rockiger)

    Call a component within an HTML tag from another page?

    I don’t understand what you mean by that. But calling React components from outside React sounds like a bad idea.

    Or to modify the actual react page with Elementor?

    While I never used Elementor, It should be possible. Only make sure that the slug stays the same and the page has <div id="root"></div> in it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Is it working without npm ?’ is closed to new replies.