Closed
Description
What is the current behavior?
Running this module on node.js (for example during ssr) results in: ReferenceError: Element is not defined
What is the expected behavior?
Importing react-transition-group
does not result in an error
The problem is this line:
react-transition-group/src/Transition.js
Line 397 in c863158
A possible solution is: Element = typeof Element === 'undefined' ? function(){} : Element