|
|
|
|
|
by itsthecourier
528 days ago
|
|
just use importmaps https://guides.rubyonrails.org/working_with_javascript_in_ra... - Adding npm Packages with importmap-rails
To add new packages to your import map-powered application, run the bin/importmap pin command from your terminal: $ bin/importmap pin react react-dom Then, import the package into application.js as usual: import ReactDOM from "react-dom" |
|