mowgli
Version:
Thin layer over React JS for interacting with a single tree of state
22 lines (14 loc) • 303 B
JavaScript
;
import React from 'react';
import {Mixin} from 'mowgli';
const h4 = React.createFactory('h4');
export default React.createClass({
displayName: 'AnotherTitle',
mixins: [Mixin],
data: {
text: 'anotherTitle.text'
},
render: function() {
return h4({}, this.state.text);
}
});