Skip to content

Instantly share code, notes, and snippets.

@lgraubner
Created October 25, 2017 12:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgraubner/fcc254af1de32c616668fce44f524d4b to your computer and use it in GitHub Desktop.
Save lgraubner/fcc254af1de32c616668fce44f524d4b to your computer and use it in GitHub Desktop.
React helper components
const Aux = ({ children }) => children;
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