mdmb
mdmb

Reputation: 5283

react-motion - adding this library to rails

Have anyone tried adding react-motion to a rails project? Have not seed any gems for this, but it would be kind of awesome to use it.

What are the steps I have to make to use it?

I have been trying to add all files to vendor/assets/javascrips and requiring them in application.js but the syntax used in those files is new to me.

Upvotes: 0

Views: 64

Answers (1)

neydroid
neydroid

Reputation: 1951

One simple way to handle this kind of dependencies to the asset pipeline is using rails-assets here are the instructions for react-motion

https://rails-assets.org/#/components/react-motion

Upvotes: 2

Related Questions