33#### ` react `
44
55``` purescript
6- react :: forall props state fx. { displayName :: String, initialState :: { | state }, receiveProps :: props -> { | state } -> (SetState state fx) -> Eff (react :: ReactFX | fx) Unit, render :: props -> { | state } -> (SetState state fx) -> JSX } -> ReactComponent props
6+ react :: forall props state fx. { displayName :: String, initialState :: { | state }, receiveProps :: { | props } -> { | state } -> (SetState state fx) -> Eff (react :: ReactFX | fx) Unit, render :: { | props } -> { | state } -> (SetState state fx) -> JSX } -> ReactComponent { | props }
77```
88
99Create a React component from a _ specification_ of that component.
@@ -19,7 +19,7 @@ module (and re-exported here).
1919#### ` stateless `
2020
2121``` purescript
22- stateless :: forall props. { displayName :: String, render :: props -> JSX } -> ReactComponent props
22+ stateless :: forall props. { displayName :: String, render :: { | props } -> JSX } -> ReactComponent { | props }
2323```
2424
2525Create a stateless React component.
@@ -30,7 +30,7 @@ components which don't use state.
3030#### ` createElement `
3131
3232``` purescript
33- createElement :: forall props. ReactComponent props -> props -> JSX
33+ createElement :: forall props. ReactComponent { | props } -> { | props } -> JSX
3434```
3535
3636Create a ` JSX ` node from a React component, by providing the props.
@@ -63,33 +63,6 @@ Render an Array of children without a wrapping component.
6363Provide a key when dynamically rendering multiple fragments along side
6464each other.
6565
66-
67- ### Re-exported from React.Basic.Types:
68-
69- #### ` SyntheticEvent `
70-
71- ``` purescript
72- type SyntheticEvent = { bubbles :: Boolean, cancelable :: Boolean, currentTarget :: DOMNode, defaultPrevented :: Boolean, eventPhase :: Number, isTrusted :: Boolean, target :: DOMNode, timeStamp :: Number, "type" :: String }
73- ```
74-
75- Event data that we receive from React.
76-
77- #### ` ReactFX `
78-
79- ``` purescript
80- data ReactFX :: Effect
81- ```
82-
83- A placeholder effect for all React FFI.
84-
85- #### ` ReactComponent `
86-
87- ``` purescript
88- data ReactComponent :: Type -> Type
89- ```
90-
91- A React component which can be used from JavaScript.
92-
9366#### ` JSX `
9467
9568``` purescript
@@ -98,28 +71,20 @@ data JSX :: Type
9871
9972A virtual DOM element.
10073
101- #### ` EventHandler `
74+ #### ` ReactComponent `
10275
10376``` purescript
104- type EventHandler = EffFn1 (react :: ReactFX) SyntheticEvent Unit
77+ data ReactComponent :: Type -> Type
10578```
10679
107- An event handler, which receives a ` SyntheticEvent ` and performs some
108- effects in return.
80+ A React component which can be used from JavaScript.
10981
110- #### ` DOMNode `
82+ #### ` ReactFX `
11183
11284``` purescript
113- data DOMNode :: Type
85+ data ReactFX :: Effect
11486```
11587
116- An _ actual_ DOM node (not a virtual DOM element!)
117-
118- #### ` CSS `
119-
120- ``` purescript
121- data CSS :: Type
122- ```
88+ A placeholder effect for all React FFI.
12389
124- An abstract type representing records of CSS attributes.
12590
0 commit comments