Created
July 20, 2017 21:25
-
-
Save DrBoolean/07585d8fb53902f5e91c561f587c6034 to your computer and use it in GitHub Desktop.
rep10
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
// 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