@@ -38,10 +38,10 @@ react
3838 :: forall props state fx
3939 . { displayName :: String
4040 , initialState :: { | state }
41- , receiveProps :: props -> { | state } -> (SetState state fx ) -> Eff (react :: ReactFX | fx ) Unit
42- , render :: props -> { | state } -> (SetState state fx ) -> JSX
41+ , receiveProps :: { | props } -> { | state } -> (SetState state fx ) -> Eff (react :: ReactFX | fx ) Unit
42+ , render :: { | props } -> { | state } -> (SetState state fx ) -> JSX
4343 }
44- -> ReactComponent props
44+ -> ReactComponent { | props }
4545react { displayName, initialState, receiveProps, render } =
4646 component_
4747 { displayName
@@ -57,9 +57,9 @@ react { displayName, initialState, receiveProps, render } =
5757stateless
5858 :: forall props
5959 . { displayName :: String
60- , render :: props -> JSX
60+ , render :: { | props } -> JSX
6161 }
62- -> ReactComponent props
62+ -> ReactComponent { | props }
6363stateless { displayName, render } =
6464 react
6565 { displayName
@@ -74,8 +74,8 @@ type SetState state fx = ({ | state } -> { | state }) -> Eff (react :: ReactFX |
7474-- | Create a `JSX` node from a React component, by providing the props.
7575createElement
7676 :: forall props
77- . ReactComponent props
78- -> props
77+ . ReactComponent { | props }
78+ -> { | props }
7979 -> JSX
8080createElement = runFn2 createElement_
8181
@@ -104,12 +104,12 @@ foreign import component_
104104 :: forall props state fx
105105 . { displayName :: String
106106 , initialState :: { | state }
107- , receiveProps :: EffFn3 (react :: ReactFX | fx ) props { | state } (SetState state fx ) Unit
108- , render :: Fn3 props { | state } (SetState state fx ) JSX
107+ , receiveProps :: EffFn3 (react :: ReactFX | fx ) { | props } { | state } (SetState state fx ) Unit
108+ , render :: Fn3 { | props } { | state } (SetState state fx ) JSX
109109 }
110- -> ReactComponent props
110+ -> ReactComponent { | props }
111111
112- foreign import createElement_ :: forall props . Fn2 (ReactComponent props ) props JSX
112+ foreign import createElement_ :: forall props . Fn2 (ReactComponent { | props } ) { | props } JSX
113113
114114foreign import createElementKeyed_ :: forall props . Fn2 (ReactComponent { | props } ) { key :: String | props } JSX
115115
0 commit comments