Created
January 4, 2017 00:17
-
-
Save andersonleite/12b5a872482531361fc0896735ae7c1c to your computer and use it in GitHub Desktop.
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
function view(state$) { | |
return state$.map(state => | |
div([ | |
div('.info', [ | |
p('Developed by Anderson Leite using RxJS and Cycle.js'), | |
p('See the 3 part blog post') | |
]), | |
div('.header', [ | |
h2('Brewdog\'s beer'), | |
a('.refresh', {href: '#'}, 'refresh') | |
]), | |
div('.containerx', [ | |
div('.left .box', [ | |
h('li.suggestion1', [ | |
div('.beer', [ | |
img() | |
]), | |
p('.username', 'loading...'), | |
p('.description', 'loading...'), | |
a('.close .close1', {href: '#'}, 'show me other') | |
]) | |
]), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment