Skip to content

Instantly share code, notes, and snippets.

@DrBoolean
Created July 20, 2017 19:41
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 DrBoolean/437942e60aeb972e664567c302eae767 to your computer and use it in GitHub Desktop.
Save DrBoolean/437942e60aeb972e664567c302eae767 to your computer and use it in GitHub Desktop.
rep8
// create an empty ui
const empty = from(x => x)
// make a function to get the loaded up component
const ui = to(empty).map(loadComponent).map(addExample).map(beautifyHtml).map(addSelectorTable)
// run the function on the index we want
ui(‘buttons’) // {name: ‘Button’, example: ReactElement}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment