Ad

Import React Library Ruby On Rails

Having knowledge of Ruby, I decided to start developing a web application with RoR.Since I didn't find a front-end framework for RoR, I decided to go for React. That's how I found the gem react-rails.

However, I don't know how to import a React library into my RoR application. I would like to import the SemanticUI library.

How do I proceed to do this?

Ad

Answer

Did you follow the instructions on how to set up React and Webpack through this repo: https://github.com/reactjs/react-rails

If so, you can install SemanticUI from this documentation (https://react.semantic-ui.com/usage/) using Yarn.

Ad
source: stackoverflow.com
Ad