rockiger
Forum Replies Created
-
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] Router with many pagesI don’t see why there shouldn’t be one – if I understood your question correctly.
Do you have any trouble with your routes? If yes, try to use a hash router instead of a browser router.Forum: Reviews
In reply to: [ReactPress - Create React App for Wordpress] Great StuffThank you for your kind words.
What do mean with compatibility issues of the future?
Do you mean block themes?Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] NextJs compatible?I assume within the next 4 Weeks, but I can’t promise anything. You can follow the corresponding Github issue: Support Vite.
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] Localhost:3000 – blank pageSorry, for answering that late. I somehow missed your question. Yes, it is meant to have hot-reloading with ReactPress. It is one of the main ideas behind it.
If the
index.html
is empty, the cause is usually insufficient access rights. Your WordPress/PHP must be able to access the URL of the page where your app embedded. This is often a problem with Docker configurations.
Another reason could be some error during writing if PHP doesn’t have the capabilities to write files.What LOCAL environment do you use?
Can you see the page in the ReactPress admin besides your React app?
If not, add the page again to your app. This should fix the problem.
Unfortunately, there is no good downgrade path because the new version is not backwards compatible.
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] Initial setup questionHi, I don’t know about your WordPress setup. Usually you have a
wp-content
folder somewhere, therein should lie areactpress
folder. To make ReactPress development easier, LocalWP is highly recommended as a dev environment.Hope this helps.
I am preparing a new release at the moment. In the meantime you can use this version ReactPress-3.0.0pre.
I apologize for the inconvenience.@martincaparros Sorry for the late reply. Could you try this new Version (3.0.0-pre). It should fix your problem.
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] Error with ssl certificate@wandersoncs Could you try this new Version (3.0.0-pre). It should work with your host.
I would assume that you want good SEO support for a news site, so plain React isn’t a suitable solution in my opinion.
ReactPress needs a WordPress site to be embedded. Did you read the documentation?
If you want to avoid using WordPress, there a many solutions that work well with Headless CMSs. I would personally go with Next.js. But beware these solutions are more complex than creating a WordPress site.Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] Error with ssl certificateHello, I doubt that this is a problem. I suspect that your host prohibits access to PHP’s
fopen
. Which is required for ReactPress to work. Can you check iffopen
is disabled in your PHP configuration.For ReactPress’s next version I am version on a workaround.
It is meant to add Single Page Applications to your existing WordPress site. Judging from your other question, I assume it is not what you are looking for.
What is wrong with WordPress for creating a news site?Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] Headless CMS pluginI don’t think so. If I understand correctly, the Headless CMS plugin will inhibit your ability to create WordPress pages. You need pages to embed your React app with ReactPress.
The idea behind ReactPress is, that you can use React with your existing WordPress site which is contrary to a headless CMS.
Currently, there is no short code available. You can, however, use this WP plugin: https://www.ads-software.com/plugins/embed-react-application/
It won’t allow you to use an integrated dev environment and will have problems with directly loaded images, but for a simple React app it should do the trick.
Forum: Plugins
In reply to: [ReactPress - Create React App for Wordpress] Can I embed only a single page?Yes, you can. You need to go through the step of the documentation.
Use create-react-app, build it on the dev system and then publish it on the live system.
You can’t just upload any React app, that will lead to trouble.