Introducing Webpacker
Gaurav Tiwari

You should be able to import the style.sass into the counter file/component and then initialize the counter the same way inside the index.js file.

The styles should automatically be added via import instead of adding the tag right?

I’ve used this approach via react + webpack and it worked fine or is this something specific to rails/webpacker only?

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.