@@ -4,15 +4,16 @@ var React = require("react");
44var Fragment = React . Fragment || "div" ;
55
66exports . component_ = function ( spec ) {
7- function Component ( props ) {
7+ var Component = function constructor ( props ) {
88 this . state = spec . initialState ;
99 return this ;
10- }
10+ } ;
11+
1112 Component . prototype = Object . create ( React . Component . prototype ) ;
1213
13- Component . prototype . displayName = spec . displayName ;
14+ Component . displayName = spec . displayName ;
1415
15- Component . prototype . componentDidMount = function ( ) {
16+ Component . prototype . componentDidMount = function componentDidMount ( ) {
1617 var this_ = this ;
1718 spec . receiveProps ( this . props , this . state , function ( newState ) {
1819 return function ( ) {
@@ -21,7 +22,9 @@ exports.component_ = function(spec) {
2122 } ) ;
2223 } ;
2324
24- Component . prototype . componentWillReceiveProps = function ( newProps ) {
25+ Component . prototype . componentWillReceiveProps = function componentWillReceiveProps (
26+ newProps
27+ ) {
2528 var this_ = this ;
2629 spec . receiveProps ( newProps , this . state , function ( newState ) {
2730 return function ( ) {
@@ -30,7 +33,7 @@ exports.component_ = function(spec) {
3033 } ) ;
3134 } ;
3235
33- Component . prototype . render = function ( ) {
36+ Component . prototype . render = function render ( ) {
3437 var this_ = this ;
3538 return spec . render ( this . props , this . state , function ( newState ) {
3639 return function ( ) {
0 commit comments