JSFiddle - React, Tailwind, and code Playground

by ospatil

HTML

<script src="http://fb.me/JSXTransformer-0.10.0.js"></script>
<script src="http://fb.me/react-with-addons-0.10.0.js"></script>
<script src="http://fb.me/react-js-fiddle-integration.js"></script>

JavaScript 1.7

/** @jsx React.DOM */

var mixinA = {
    componentWillMount: function() {
        console.log('Im mixin A');
  }
};

var mixinB = {
    componentWillMount: function() {
        console.log('Im mixin B');
  }
};

var Hello = React.createClass({
    mixins: [],
    componentWillMount: function () {
        console.log('Props: ', this.props);
        console.log('this: ', this);
    },
    render: function() {
        return <div>Hello {this.props.name}</div>;
    }
});
 
React.renderComponent(<Hello name="World" with="mixinA" />, document.body);