Last active
September 27, 2019 13:30
-
-
Save davemackintosh/22f6331b505361f2f9bbd8b23ec7f9a8 to your computer and use it in GitHub Desktop.
Revisions
-
davemackintosh revised this gist
Sep 27, 2019 . 1 changed file with 6 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,10 @@ function compose(...composable) { return (component) => composable.reduceRight((children, Composable) => { return <Composable>{children}</Composable> }, component) } // compose(withRouter, withMyHOC, withYourHOC)(MyComponent) export default compose -
davemackintosh created this gist
Sep 27, 2019 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ function compose(...composable) { return composable.reduceRight((children, Composable) => { return <Composable>{children}</Composable> }, "") } export default compose