Created
July 20, 2017 19:40
-
-
Save DrBoolean/ca9472324c5e2f6aae38049ef5562721 to your computer and use it in GitHub Desktop.
rep7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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