/application.js Secret
Created
July 17, 2018 15:13
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* eslint no-console:0 */ | |
// This file is automatically compiled by Webpack, along with any other files | |
// present in this directory. You're encouraged to place your actual application logic in | |
// a relevant structure within app/javascript and only use these pack files to reference | |
// that code so it'll be compiled. | |
// | |
// To reference this file, add <%= javascript_pack_tag 'application' %> to the appropriate | |
// layout file, like app/views/layouts/application.html.erb | |
import ReactOnRails from 'react-on-rails'; | |
import Search from '../components/Search'; | |
ReactOnRails.register({ | |
Search | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
app/javascript/packs/application.js