Najtmare

Results 10 comments of Najtmare

I use the default configuration that is provided when running these 3 commands. So I'm not really sure what you mean by usage of react_ujs. ``` $ rails webpacker:install $...

application.js ``` console.log('Hello World from Webpacker') // Support component names relative to this directory: var componentRequireContext = require.context("components", true) var ReactRailsUJS = require("react_ujs") ReactRailsUJS.useContext(componentRequireContext) ``` CommentsContainer: ``` var CommentsContainer =...

Here's a test app that recreates that behaviour: https://github.com/Najtmare/reactpack

Hm, that's weird. I remember using this same gem, perhaps a year ago or so where underscore did not matter much as long as the component had the correct class...

So it seems like the generators always use the same file name regardless of the fact that webpacker is present. This should probably change so that you don't have to...

Done https://github.com/reactjs/react-rails/pull/703

Hm. I think we might have to include the whole ``` var React = require("react") ... module.exports = ComponentName ``` In the generated files. Otherwise we still get the Component...

Thanks @rmosolgo. Sorry, I didn't have much time this past week to work further on the issue. Cheers.