React Base Fiddle (JSX)

Starting point for creating JSFiddles with React. This uses React with Addons.

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.13.1/react-with-addons.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/0.13.1/JSXTransformer.js"></script>
<script src="https://rawgit.com/yaycmyk/react-input-placeholder/react-compatibility/dist/react-input-placeholder.js"></script>
<script src="https://facebook.github.io/react/js/jsfiddle-integration.js"></script>

<div id="container">
    <!-- This element's contents will be replaced with your component. -->
</div>

JavaScript 1.7

var View = React.createClass({
    mixins: [React.addons.LinkedStateMixin],
    
    getInitialState: function() {
        return {value: ''};
    },
    
    handleChange: function(e) {
        this.setState({value: e.target.value});
    },
    
    render: function() {
        return (
            <div>
                {PlaceholderShim.Input({
                    placeholder: 'Enter text here...',
                    valueLink: this.linkState('value')
                })}
                {PlaceholderShim.Input({
                    placeholder: 'Enter text here...',
                    value: this.state.value,
                    onChange: this.handleChange
                })}
            </div>
        );
    }
});
 
React.render(<View />, document.getElementById('container'));