0

I have a Rails 5 app and am looking to learn/use React.js.

I was able to use gem 'react-rails' to build a simple React.js experience in my Rails app. Now I would like to add react-router to my Rails app however this doesn't seem to be as easy as I would expect. There is no gem for react-router that supports Rails 5, and there are no clear installation instructions for adding react-router to a Rails 5 app.

How can I do this?

1 Answer 1

1

Like many other javascript libraries, you don't necessarily need a gem for them to hook them onto your rails app. So try loading the javascript file for react-router so that it's usable in your react app.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.