Skip to content

mciparelli/cyclejs-gravatar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# cyclejs-gravatar

Gravatar component for Cycle.js

Install

npm install cyclejs-gravatar --save

Usage

import Cycle from '@cycle/core';
import {div, h1, makeDOMDriver} from '@cycle/dom';
import Gravatar from 'cyclejs-gravatar';

function main({DOM}) {
  const gravatarProps$ = Observable.of({
    email: '[email protected]'
  });

  const gravatar = Gravatar({ props$: gravatarProps$ });

  return {
    DOM: gravatar.DOM.map(gravatarVTree =>
      div([
        h1('My Gravatar'),
        gravatarVTree
      ])
    )
  };
}

Cycle.run(main, {
  DOM: makeDOMDriver('.app')
});

Inspirations

License

MIT

About

Cycle.js component for rendering a gravatar profile image

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published