Skip to content

Instantly share code, notes, and snippets.

@khle
Created January 28, 2016 05:33
Show Gist options
  • Select an option

  • Save khle/b17a5870f486c16f1aec to your computer and use it in GitHub Desktop.

Select an option

Save khle/b17a5870f486c16f1aec to your computer and use it in GitHub Desktop.
CycleSocket Chat appBar.js
import {Observable} from 'rx';
import {h2, div, label, nav, a} from '@cycle/dom';
export function appBar({DOM}) {
let vdom$ = Observable.of(
div('navbar-fixed', [
nav([
div('nav-wrapper', [
a({className: 'brand-logo center', href: '#'}, 'Cycle Socket Chat'),
])
])
])
);
return {
DOM: vdom$
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment