Skip to content

Instantly share code, notes, and snippets.

@alexbeletsky
Created November 17, 2017 13:23
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 alexbeletsky/9c92e6da643d9cd7b19f8a12e7ee5c29 to your computer and use it in GitHub Desktop.
Save alexbeletsky/9c92e6da643d9cd7b19f8a12e7ee5c29 to your computer and use it in GitHub Desktop.
export function composeComponents(component, wrappers = []) {
return wrappers.reduce((c, wrapper) => wrapper(c), component);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment