@@ -17,7 +17,7 @@ import Prelude
1717
1818import Demo.Shared (DemoProps, card, desc, label, round, scrollWrap, sectionTitle)
1919import React.Basic (JSX)
20−import React.Basic.Events (handler, handler_, unsafeEventFn)
20+import React.Basic.Events (handler, unsafeEventFn)
2121import React.Basic.Hooks (useState', (/\))
2222import React.Basic.Hooks as React
2323import Yoga.React (component)
@@ -180,7 +180,7 @@ stepperDemo = component "StepperDemo" \dp -> React.do
180180 , minValue: 0.0
181181 , maxValue: 50.0
182182 , increment: 1.0
183− , onChange: E.onNumber "value" setValue
183+ , onChange: setValue
184184 , style: Style.style { width: 100.0, height: 24.0 }
185185 }
186186 ]
@@ -240,14 +240,14 @@ checkboxDemo = component "CheckboxDemo" \dp -> React.do
240240 { checked: a
241241 , title: "Enable notifications"
242242 , enabled: true
243− , onChange: E.onBool "checked" setA
243+ , onChange: setA
244244 , style: Style.style { height: 24.0 } <> tw "mb-1"
245245 }
246246 , nativeCheckbox
247247 { checked: b
248248 , title: "Dark mode"
249249 , enabled: true
250− , onChange: E.onBool "checked" setB
250+ , onChange: setB
251251 , style: Style.style { height: 24.0 }
252252 }
253253 ]
@@ -264,21 +264,21 @@ radioButtonDemo = component "RadioButtonDemo" \dp -> React.do
264264 { selected: choice == "option1"
265265 , title: "Small"
266266 , enabled: true
267− , onChange: handler_ (setChoice "option1")
267+ , onChange: \_ -> setChoice "option1"
268268 , style: Style.style { height: 24.0 } <> tw "mb-1"
269269 }
270270 , nativeRadioButton
271271 { selected: choice == "option2"
272272 , title: "Medium"
273273 , enabled: true
274− , onChange: handler_ (setChoice "option2")
274+ , onChange: \_ -> setChoice "option2"
275275 , style: Style.style { height: 24.0 } <> tw "mb-1"
276276 }
277277 , nativeRadioButton
278278 { selected: choice == "option3"
279279 , title: "Large"
280280 , enabled: true
281− , onChange: handler_ (setChoice "option3")
281+ , onChange: \_ -> setChoice "option3"
282282 , style: Style.style { height: 24.0 }
283283 }
284284 , label dp.dimFg ("Selected: " <> choice)