Skip to content

Instantly share code, notes, and snippets.

@jakwuh
Created May 7, 2019 06:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jakwuh/9485fef622d0fd024892c55d3de3b375 to your computer and use it in GitHub Desktop.
Save jakwuh/9485fef622d0fd024892c55d3de3b375 to your computer and use it in GitHub Desktop.
withGhost stupid example
---
import { withBranch, renderComponent } from 'recompose';
withBranch(
props => props.data.loading,
renderComponent(CustomGhostComponent),
);
---
import { withProps, compose } from 'recompose';
import { withGhost } from '@aap/boostrap';
compose(
withProps(props => ({
isFetching: props.data.loading
})),
withGhost({
Ghost: CustomGhostComponent,
})
);
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment