Skip to content

Instantly share code, notes, and snippets.

@DrBoolean
Created July 20, 2017 21:25
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/07585d8fb53902f5e91c561f587c6034 to your computer and use it in GitHub Desktop.
Save DrBoolean/07585d8fb53902f5e91c561f587c6034 to your computer and use it in GitHub Desktop.
rep10
// build the empty ui data structure
const empty = from(x => x)
// a function that returns a complete component instead of a map that loops through all
const ui = Reader(to(empty)).map(loadComponent).map(addExample).map(beautifyHtml).map(addSelectorTable)
// run the function for a component
ui.run(‘buttons’) // {name: ‘Button’, example: ReactElement}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment