File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,11 @@ helloInConsole e = do
19
19
20
20
hello = mkUI spec do
21
21
props <- getProps
22
- return $ h1 [className " Hello" , onClick helloInConsole] [
22
+ return $ h1 [
23
+ className " Hello" ,
24
+ onClick helloInConsole,
25
+ style {background: " gray" }
26
+ ] [
23
27
text " Hello, " ,
24
28
text props.name
25
29
]
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ module React.DOM where
2
2
3
3
import React
4
4
5
- data DOMProps eff props state
6
- = Accept String
5
+ data DOMProps s eff props state =
6
+ Accept String
7
7
| AccessKey String
8
8
| Action String
9
9
| AllowFullScreen String
@@ -83,7 +83,7 @@ module React.DOM where
83
83
| SrcSet String
84
84
| Start String
85
85
| Step String
86
- | Style String
86
+ | Style { | s }
87
87
| TabIndex String
88
88
| Target String
89
89
| Title String
@@ -290,7 +290,7 @@ module React.DOM where
290
290
\ } \
291
291
\ } \
292
292
\ }"
293
- :: forall eff props state. String -> [DOMProps eff props state] -> [UI ] -> UI
293
+ :: forall s eff props state. String -> [DOMProps s eff props state] -> [UI ] -> UI
294
294
295
295
foreign import text
296
296
" function text(text) { \
You can’t perform that action at this time.
0 commit comments