Created
March 9, 2015 10:11
-
-
Save quangbuule/7f27c8fe94f05ee8909f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import when from 'store-util/when'; | |
import { Spinner, Campaign } from 'components'; | |
[...] | |
render() { | |
var campaign = this.state.campaign; | |
return ( | |
<div> | |
{when(campaign, { | |
retrieving: <Spinner />, | |
done: <Campaign {...{campaign}} /> | |
})} | |
</div> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment