@@ -45,20 +45,20 @@ foreign import fragment :: Array JSX -> JSX
45
45
-- | Create a `JSX` node from a `ReactComponent`, by providing the props.
46
46
-- |
47
47
-- | __*See also:* `ReactComponent`, `elementKeyed`__
48
- foreign import element ::
49
- forall props .
50
- ReactComponent { | props } ->
51
- { | props } ->
52
- JSX
48
+ foreign import element
49
+ :: forall props
50
+ . ReactComponent { | props }
51
+ -> { | props }
52
+ -> JSX
53
53
54
54
-- | Create a `JSX` node from a `ReactComponent`, by providing the props and a key.
55
55
-- |
56
56
-- | __*See also:* `ReactComponent`, `element`, React's documentation regarding the special `key` prop__
57
- foreign import elementKeyed ::
58
- forall props .
59
- ReactComponent { | props } ->
60
- { key :: String | props } ->
61
- JSX
57
+ foreign import elementKeyed
58
+ :: forall props
59
+ . ReactComponent { | props }
60
+ -> { key :: String | props }
61
+ -> JSX
62
62
63
63
-- | Represents a traditional React component. Useful for JavaScript interop and
64
64
-- | FFI. For example:
@@ -82,15 +82,15 @@ foreign import data ReactContext :: Type -> Type
82
82
-- | __*See also:* `provider`, `consumer`, React's documentation regarding Context__
83
83
foreign import createContext :: forall a . a -> Effect (ReactContext a )
84
84
85
- foreign import contextProvider ::
86
- forall a .
87
- ReactContext a ->
88
- ReactComponent { value :: a , children :: Array JSX }
85
+ foreign import contextProvider
86
+ :: forall a
87
+ . ReactContext a
88
+ -> ReactComponent { value :: a , children :: Array JSX }
89
89
90
- foreign import contextConsumer ::
91
- forall a .
92
- ReactContext a ->
93
- ReactComponent { children :: a -> Array JSX }
90
+ foreign import contextConsumer
91
+ :: forall a
92
+ . ReactContext a
93
+ -> ReactComponent { children :: a -> Array JSX }
94
94
95
95
-- | Create a provider `JSX` given a context value and children.
96
96
-- |
0 commit comments