omniscient
Version:
A library providing an abstraction for React components for passing the same data structure through the entire component flow using cursors and immutable data structures.
14 lines • 434 B
HTML
<html>
<body>
<div id="test"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.13.3/react.js"></script>
<script src="omniscient.js"></script>
<script>
var component = omniscient;
var Greet = component(function (props) {
return React.DOM.span({}, props.text);
});
React.render(Greet({ text: 'works' }), document.querySelector("#test"));
</script>
</body>
</html>