Created
October 25, 2017 12:09
-
-
Save lgraubner/fcc254af1de32c616668fce44f524d4b to your computer and use it in GitHub Desktop.
React helper components
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
const Aux = ({ children }) => children; |
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
const ConditionalWrap = ({ condition, wrap, children }) => condition ? wrap(children) : children; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment