-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
sample.coffee
class Button
render: =>
super <paper-button className="rui-button rui-form-control" onClick={@buttonClicked}>{text}</paper-button>
is translated to sample.js
// Generated by CoffeeScript 1.8.0
var Button,
__bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
Button = (function() {
function Button() {
this.render = __bind(this.render, this);
}
Button.prototype.render = function() {
return Button.__super__.render.call(this, React.createElement(paper - button, {
"className": "rui-button rui-form-control",
"onClick": this.buttonClicked
}, text));
};
return Button;
})();
Note that the React.createElement doesn't give the right output.
Metadata
Metadata
Assignees
Labels
No labels