Created
January 28, 2016 05:33
-
-
Save khle/b17a5870f486c16f1aec to your computer and use it in GitHub Desktop.
CycleSocket Chat appBar.js
This file contains hidden or 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
| 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