Last active
March 13, 2017 21:55
-
-
Save jamesplease/79d34ba52d12fce49082e9aae2c4e210 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 {Resource, State} from 'simple-resource-components'; | |
return ( | |
<Resource names={['request', 'movie']}> | |
<div className="movieTitle"> | |
<State for="movie" type="loading" component={LoadingComponent}/> | |
</div> | |
<div className="requestDetail"> | |
<State for={['request', 'movie']} type="loading" component={LoadingComponent}/> | |
</div> | |
</Resource> | |
); |
This file contains hidden or 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 {Resource} from 'simple-resource-components'; | |
return ( | |
<div className="movieTitle"> | |
<Resource name="movie" status="loading" component={LoadingComponent}/> | |
</div> | |
<div className="requestDetail"> | |
<Resource names={['request', 'movie']} status="loading" component={LoadingComponent}/> | |
</div> | |
); |
This file contains hidden or 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 {Resource, State} from 'simple-resource-components'; | |
return ( | |
<div className="movieTitle"> | |
<State for="movie" type="loading" component={LoadingComponent}/> | |
</div> | |
<div className="requestDetail"> | |
<State for={['request', 'movie']} type="loading" component={LoadingComponent}/> | |
</div> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Status
->State
?