File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
generated-docs/React/Basic Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,21 @@ input { onChange: handler targetValue
69
69
}
70
70
```
71
71
72
+ #### ` handler_ `
73
+
74
+ ``` purescript
75
+ handler_ :: Eff (react :: ReactFX) Unit -> EventHandler
76
+ ```
77
+
78
+ Create an ` EventHandler ` which discards the ` SyntheticEvent ` .
79
+
80
+ For example:
81
+
82
+ ``` purs
83
+ input { onChange: handler_ (setState \_ -> { value })
84
+ }
85
+ ```
86
+
72
87
#### ` merge `
73
88
74
89
``` purescript
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ module React.Basic.Events
4
4
, EventFn
5
5
, unsafeEventFn
6
6
, handler
7
+ , handler_
7
8
, merge
8
9
, class Merge
9
10
, mergeImpl
@@ -68,7 +69,7 @@ handler (EventFn fn) cb = mkEffFn1 $ fn >>> cb
68
69
-- | input { onChange: handler_ (setState \_ -> { value })
69
70
-- | }
70
71
-- | ```
71
- handler_ :: forall a . Eff (react :: ReactFX ) Unit -> EventHandler
72
+ handler_ :: Eff (react :: ReactFX ) Unit -> EventHandler
72
73
handler_ = mkEffFn1 <<< const
73
74
74
75
class Merge (rl :: RowList ) fns a r | rl -> fns , rl a -> r where
You can’t perform that action at this time.
0 commit comments