You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
I know that ReactTransitionGroup and ReactCSSTransitionGroup are both deprecated as of React v15.5.0
I try to use CSSTransitionGroup in react-rails version 2.1.0 (react ver.15)
So what the best practice for using CSSTransitionGroup with react-rails
//= require jquery
//= require jquery_ujs
//= require react
//= require react_ujs
//= require components
//= require_tree .
// Setup React in global scope
var React = window.React = global.React = require('react');
var ReactDOM= window.ReactDOM = global.ReactDOM = require('react-dom');
in component.js
//= require_tree ./components
var CSSTransitionGroup = require('react-transition-group/CSSTransitionGroup');
console.log(CSSTransitionGroup); //the function is found when i log here
Is this issue solved with the latest react-rails v2.3 which updates React and it's addons to fix these depreciation warnings? #798
I'll close for now but if there's anything I can do along these lines let me know and I'll reopen.
Help us help you! Please choose one:
react-rails
, so I've included the stack trace and the exact steps which make it crash.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 know that ReactTransitionGroup and ReactCSSTransitionGroup are both deprecated as of React v15.5.0
I try to use CSSTransitionGroup in react-rails version 2.1.0 (react ver.15)
So what the best practice for using CSSTransitionGroup with react-rails
Here is the way i have try but it didn't work
install CSSTransitionGroup via npm like #413
in application.js
in component.js
in TestComponent.jsx
Browser log
and
THANK YOU.
The text was updated successfully, but these errors were encountered: