Created
June 29, 2017 09:44
-
-
Save du5rte/56274e28048019e14a735e9991d013c1 to your computer and use it in GitHub Desktop.
Prop injector
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
function injectProps(options) { | |
return function(InitialComponent) { | |
return function DndStateInjector() { | |
return <InitialComponent {...options} />; | |
}; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment