Demo entry 6285576

test

   

Submitted by anonymous on Oct 18, 2016 at 22:58
Language: JavaScript. Code size: 316 Bytes.

var Component = React.createClass({
    render: function() {
        var a = 5;
        var b = 3;
        return (
            <div>
                {(a > b) ? <p>{a}</p> : {b}}
            </div>
        );
    }
});

ReactDOM.render(
    <Component />,
    document.getElementById('container')
);

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).