File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ var React = require('react');
5
5
exports . react_ = function ( spec ) {
6
6
return React . createClass ( {
7
7
getInitialState : function ( ) {
8
- return spec . initialState ;
8
+ return spec . initialState ( this . props ) ;
9
9
} ,
10
10
render : function ( ) {
11
11
var this_ = this ;
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ import React.Basic.Types as React.Basic.Types
14
14
15
15
foreign import react_
16
16
:: forall props state
17
- . { initialState :: state
17
+ . { initialState :: props -> state
18
18
, render :: Fn3 props state (state -> Eff (react :: ReactFX ) Unit ) JSX
19
19
}
20
20
-> ReactComponent props
@@ -30,7 +30,7 @@ foreign import react_
30
30
-- | module (and re-exported here).
31
31
react
32
32
:: forall props state
33
- . { initialState :: state
33
+ . { initialState :: props -> state
34
34
, render :: props -> state -> (state -> Eff (react :: ReactFX ) Unit ) -> JSX
35
35
}
36
36
-> ReactComponent props
You can’t perform that action at this time.
0 commit comments