Skip to content

Component Generator with Webpacker attempts to use createReactClass #820

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 of 4 tasks
BookOfGreg opened this issue Oct 30, 2017 · 0 comments
Closed
1 of 4 tasks

Comments

@BookOfGreg
Copy link
Member

Help us help you! Please choose one:

  • My app crashes with react-rails, so I've included the stack trace and the exact steps which make it crash.
  • My app doesn't crash, but I'm getting unexpected behavior. So, I've described the unexpected behavior and suggested a new behavior.
  • I'm trying to use react-rails with another library, but I'm having trouble. I've described my JavaScript management setup (eg, Sprockets, Webpack...), how I'm trying to use this other library, and why it's not working.
  • I have another issue to discuss.

On React-rails 2.4.0
The component Generator when running Webpacker generated components starting :

var Post = createReactClass({

And createReactClass is not included by rails webpacker:install:react

I expect that if Webpacker is available we should be offering ES6 style components by default OR including createReactClass in our installer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant