A
A
Arsen Abakarov2017-06-10 21:10:05
JavaScript
Arsen Abakarov, 2017-06-10 21:10:05

Online store, is it worth bothering with react js?

I’ve decided
on the backend, I still think about the front, I want to have buns from react, but indexing ...
Do I need to bother and write separate pages for indexing, or not mess with it at all?
Won't it turn out that I'll "pull" react?
Does anyone have experience with this?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Anton, 2017-06-10
@ArsenAbakarov

React has been friends with SSR for a long time, it's easy to do.

A
Archakov Dennis, 2018-05-28
@archakov06

 Here is a free ReactJS + Redux course on developing an online store

V
Vasily Nazarov, 2017-06-11
@vnaz

Won't it turn out that I'll "pull" react?

Well, first of all, it really looks like this.
Secondly, as mentioned above, you can connect SSR, but this is => on the Node.JS server (without Node there will be another perversion).
Thirdly, it is possible to do "normal" Web 1.0 functionality on the server (all pages are returned by the server with a reload), but at the same time, on the front, be able to redraw the same pages with react, receiving only data from the back.
According to the 3rd option, you will need to add several controllers that conditionally duplicate the main ones, like this:
- /catalog/category/id/page/n - gives the entire HTML page
- /api/v1/catalog/category/id/page/ n - returns only JSON array of products on the page

E
EJIqpEP, 2017-07-16
@EJIqpEP

From my experience, I can say that React is great for applications where indexing is needed. To do this, we need SSR (server side rendering) - first we render the React application in nodeJS, and then on the client, where some changes occur (transitions between pages, changes in the state of the application). At the initial rendering on the server, search engines index the application perfectly.
Using react, you will not need to think that you need to render some pages separately on the server with crutches. It's just that your entire app can be rendered both on the server and on the client.
I filmed a series about how to write an online store on React + Redux, but unfortunately I don’t tell about the server side rendering there
Online store on React / Redux

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question