xxxxxxxxxx
var InputComponent = React.createClass({
render: function() {
var required = true;
var disabled = false;
return (
<input type="text" disabled={disabled} required={required} />
);
}
});
xxxxxxxxxx
return (
<Button { (condition ? {className: 'btn btn-primary'} : {})} />
);
xxxxxxxxxx
render() {
return (
<a className="navbar-brand" { url ? {href: url} : {}}>Logo</a>
)
}