import { Motion, spring } from 'react-motion'; const Collapsable = ({ fullHeight, isVisible, children }) => ( {({ opacity, height }) =>
{children}
}
); Collapsable.propTypes = { fullHeight: React.PropTypes.number.isRequired, isVisible: React.PropTypes.bool.isRequired, children: React.PropTypes.node.isRequired }; export default Collapsable;