0.0.5 • Published 10 years ago

omiescent v0.0.5

Weekly downloads
2
License
mit
Repository
github
Last release
10 years ago

omiescent

A library providing an abstraction for React components similar to that of Quiescent for clojurescript. Except, sometimes you need state! Omiescent pairs the simplicity of Quiescent with the cursors of Om, for js, using Immutable.js.

var component = require('quiescent-for-js'),
    React = require('react');

var Heading = component(function (value) {
  return React.DOM.text({}, value.text);
});

$ = document.querySelector.bind(document);
React.renderComponent(
  Heading({ text: 'some text' }),
  $('.app'));