Skip to content

Instantly share code, notes, and snippets.

@AndrewRayCode
Created February 19, 2015 00:42
Show Gist options
  • Save AndrewRayCode/ce13e8d28e9348e74d24 to your computer and use it in GitHub Desktop.
Save AndrewRayCode/ce13e8d28e9348e74d24 to your computer and use it in GitHub Desktop.
<ReactCSSTransitionGroup transitionName="fadeIn">
{this.state.loading && <Loading key={0} />}
{this.state.error &&
<div className="alert alert-block alert-danger" key={1}>
Error: { messages[ this.state.error ] }
</div>}
{this.state.success &&
<div className="alert alert-block alert-success" key={2}>
Success!
</div>}
</ReactCSSTransitionGroup>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment