Skip to content

Instantly share code, notes, and snippets.

@DrBoolean
Created July 20, 2017 19:40
Show Gist options
  • Save DrBoolean/ca9472324c5e2f6aae38049ef5562721 to your computer and use it in GitHub Desktop.
Save DrBoolean/ca9472324c5e2f6aae38049ef5562721 to your computer and use it in GitHub Desktop.
rep7
// create empty ui
const empty = Components.reduce((acc, key) => acc.set(key, key), Immutable.Map())
// load every component with every example and data filled in
const ui = empty.map(loadComponent).map(addExample).map(beautifyHtml).map(addSelectorTable)
// get the componet we want for the page
ui.get(‘buttons’) // {name: ‘Button’, example: ReactElement}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment