hi i want to mix this to export in one export ex...
# orm-help
h
hi i want to mix this to export in one export export default withStyles(styles)(RecipeReviewCard); export default graphql(ClaimQuery)(RecipeReviewCard);
m
does the following work?
export default graphql(ClaimQuery)(withStyles(styles)(RecipeReviewCard));
t
you can also use
compose
from react-apollo
Copy code
import { graphql, compose } from 'react-apollo'

export default compose(
  withStyles(styles),
  graphql(ClaimQuery),
)(RecipeReviewCard)
m
Oh I didn't know you could use
compose
outside of graphql queries/mutations
t
Sure, you can compose with it whatever HOC's you have
👍 1
w
compose
is actually nothing more than lodash’s
flowRight
function 🙂
👍 2
h
thanks amigos 😁