WordPress rest API with React.js frontend. Best way to do it?

[ad_1]

Little background: I need to build a e-commerce website for tire shop. They need to fetch currently available products from third party API (JSON) and display it on the website. They also need a search option for tires, like searching by width, dimensions and profile (and possible search by numberplate, but they are not sure).

​

So, I have a bit of experience React.js and with wordpress (build a few websites with pagebuilder Elementor with few adjustements in css and functions.php) and I’m thinking of building this website on WordPress REST API with woocommerce (to handle the e-commerce side of things, plus I can use Stripe as checkout). Owner currently pays for hosting for another website. On the same hosting provider he bought a domain name. I’m not sure how the hosting works but from what I can see I can only host a wordpress website. So since the domain name is already there I can create and host wordpress website on that domain name and fetch data from REST API to use it in React app that will probably be hosted somewhere else.

​

What I’m not so sure about is SEO side of things. I know a little bit of react (build a simple website, weather app and a calculator) and from what I know react doesnt render the HTML structure, so thats bad for SEO. I’ve been told that I can use next.js to fix this issue but I’ve never used next.js. I also seen in this video tutorial you can you Fortity for wordpress but I’m not entirely sure how it works and what it does. I want this website to have as little maintainance as possible, because I only get paid to create it, not maintaine it.

​

Edit: I noticed that I can use FTP on the hosting service provider. Can I host react app there?

Also, Frontity says that it generates HTML serverless on the fly. Has anyone used it? Any tips?

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer