Answer the question
In order to leave comments, you need to log in
How to use ReactJS if the application is on RoR?
There is a Ruby on Rails application, front-end on Bootstrap + jQuery, respectively.
Due to def. difficulties, I want to rewrite the front in ReactJS.
Question:
There is a "div" block, it contains a list of links / products, it is necessary for search robots to index it (i.e. rendering is done on the back-end). I want to access it using React and manipulate it. For example: onSubmit, onChange, etc., how can I do this?
In jQuery, I do something along the lines of:
$('div form').submit( function ( event ) {
event.preventDefault();
do_something();
});
Answer the question
In order to leave comments, you need to log in
Are you sure you even need React? If yes, then either rewrite the entire server side rendering on React, for this you will need an additional node.js server, or implement on React only modules with complex logic that do not need indexing: shopping cart, personal account, checkout, admin panel.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question