Skip to content

Addons are Deprecated. #797

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
danfrenette opened this issue Oct 1, 2017 · 1 comment · Fixed by #798
Closed
1 of 4 tasks

Addons are Deprecated. #797

danfrenette opened this issue Oct 1, 2017 · 1 comment · Fixed by #798

Comments

@danfrenette
Copy link
Contributor

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.

Mainly posting this for it to get some visibility. Please feel free to take it down if any of it's redundant or stated elsewhere in the docs and I missed it, but as the title suggests addons are deprecated now. I thought this was worth mentioning to any other React newbies who would like to use CSSTransitionGroup and are having trouble. It turns out you can delete config.react.addons = true from application.rb, as it's basically useless after version 15.5

Here's where you can find the drop in for CSSTransitionGroup. I got it to install just fine after following the instructions in the README of that link.

So to conclude, this is just some information that would have saved me a lot of time, and I'd be awesome to see something about it in the README. I also think it's important to put something here because there are a lot of threads that, because everyone in them was using a version prior to 15.5, are basically irrelevant because they relied on the addons entry point. Hope this is helpful!

@BookOfGreg
Copy link
Member

BookOfGreg commented Oct 2, 2017

Thank you for the information. From this comment we plan to put forward one more release with React 15.6 with the replacement addons and no deprecation warnings, then from 16 onwards not have addons anymore.
Feel free to comment on, test, or add to the work in #792 if you want to know more :)

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

Successfully merging a pull request may close this issue.

2 participants