Last active
September 25, 2017 21:40
-
-
Save acorcutt/432b0f80ccf7c4298bdc165e4770c715 to your computer and use it in GitHub Desktop.
Transform props with Ramda & recompose
This file contains 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
// 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