Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { branch, renderComponent } from 'recompose';
- const Loading = () => (
- <div>Loading....</div>
- );
- export const withLoadingComponent = branch(
- props => props.loading,
- renderComponent(Loading),
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement