Skip to content

Instantly share code, notes, and snippets.

@acorcutt
Last active September 25, 2017 21:40
Show Gist options
  • Save acorcutt/432b0f80ccf7c4298bdc165e4770c715 to your computer and use it in GitHub Desktop.
Save acorcutt/432b0f80ccf7c4298bdc165e4770c715 to your computer and use it in GitHub Desktop.
Transform props with Ramda & recompose
// Transform props { listingEditQuery: { Listing: { title: 'Title' }} => { listing: { title: 'Title' }}
withProps(R.compose(R.objOf('listing'), R.path(['listingEditQuery', 'Listing'])))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment