Answer the question
In order to leave comments, you need to log in
How to implement remote: true for react (rails)?
I create the form like this:
= form_for Review.new do |f|
= react_component "Popups/ReviewPopup", {name: "review-popup"}
Popups/ReviewPopup
I have form fields with the required name . <button
onClick={e => {
onClick(e);
e.preventDefault();
}}
className="button popup-footer__button"
>
Отправить
</button>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question