Example #1
0
'use strict';

import {DOM} from 'trixion';


export default {
  render({user}) {
    return (
      DOM.div({},
        DOM.h3(null, "This is the profile of:"),
        DOM.h1(null, user || "Unknown")
      )
    );
  }
};
Example #2
0
'use strict';

import {DOM} from 'trixion';

import {baseClass} from './style.styl';
export default {
  render() {
    return DOM.div({className: baseClass},
      DOM.div({className: baseClass + '-logo'}, "Logo"),
      "Nav bar"
    );
  }
};