Skip to content

Instantly share code, notes, and snippets.

@andersonleite
Created January 4, 2017 00:17
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 andersonleite/12b5a872482531361fc0896735ae7c1c to your computer and use it in GitHub Desktop.
Save andersonleite/12b5a872482531361fc0896735ae7c1c to your computer and use it in GitHub Desktop.
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