isValidElement not defined
Closed this issue · 1 comments
miracle2k commented
In this file:
https://github.com/souporserious/react-motion-ui-pack/blob/master/src/is-element.js
Occurs when passing an element to component:
<Transition component={<div />}} />
souporserious commented
Fixed here a656c8d
To use a custom component you would need to pass something like this:
class CustomComponent extends Component {
render() {
return <div>{this.props.children}</div>
}
}
OR
const CustomComponent = ({ children }) => (
<div children={children}/>
)
<Transition component={CustomComponent}} />
Thanks for filing an issue! Sorry about that.