react-nullable-transition
is simple wrap component for using react-transition-group
with jsx stataments (like vue transition).
For example you can create OpacityTransition
component based on this package and use it like this:
<OpacityTransition>
{show && <Square />}
</OpacityTransition>
See full example here or on codesandbox.