Skip to content

Instantly share code, notes, and snippets.

@ianwcarlson
Last active June 25, 2017 23:00
Show Gist options
  • Save ianwcarlson/4e0ff7975f66ecc2100c138cbee19f7e to your computer and use it in GitHub Desktop.
Save ianwcarlson/4e0ff7975f66ecc2100c138cbee19f7e to your computer and use it in GitHub Desktop.
OpacityAnimation Example Usage
import OpacityAnimation from './OpacityAnimation.jsx';
const Example = ({ showBox }) => (
<OpacityAnimation>
{showBox
? <div
key="Example"
style={{
backgroundColor: 'red',
height: '30px',
width: '30px',
}}
/>
: null}
</OpacityAnimation>
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment