react-node
React Node is a lightweight wrapper around React.createElement
with a few extra features.
Installation
$ npm install react-node
Usage
var React = ;var n = ;var Link = ; var App = React;
Documentation
React Node is smart enough to know when you pass in props, children, both, or none at all. So you don't have to worry about passing in any empty props just to render a component.
You can also specify classes and id's on your tags. If you omit the tag, it will default to div
.
// <div id="bar"></div> // <div class="foo"></div> // <a class="baz"></a>
License
MIT