<Transition in={inProp} timeout={{
enter: 0,
exit: duration
}}>
(status) => {
if (status === 'exited') {
return null
}
const currentStyles = transitionStyles[status]
return React.cloneElement(children, {
style: Object.assign({}, defaultStyle, currentStyles)
})
}
}
</Transition>