-
Notifications
You must be signed in to change notification settings - Fork 482
Expand file tree
/
Copy pathdefaultValueProp.res.txt
More file actions
88 lines (79 loc) · 1.63 KB
/
defaultValueProp.res.txt
File metadata and controls
88 lines (79 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
module C0 = {
@res.jsxComponentProps
type props<'a, 'b> = {
a?: 'a,
b?: 'b,
}
let make = ({a: ?__a, b: ?__b, _}: props<_, _>) => {
let a = switch __a {
| Some(a) => a
| None => 2
}
let b = switch __b {
| Some(b) => b
| None => a * 2
}
(React.int(a + b): React.element)
}
let make = {
let \"DefaultValueProp$C0" = (props: props<_>) => make(props)
\"DefaultValueProp$C0"
}
}
module C1 = {
@res.jsxComponentProps
type props<'a, 'b> = {
a?: 'a,
b: 'b,
}
let make = ({a: ?__a, b, _}: props<_, _>) => {
let a = switch __a {
| Some(a) => a
| None => 2
}
(React.int(a + b): React.element)
}
let make = {
let \"DefaultValueProp$C1" = (props: props<_>) => make(props)
\"DefaultValueProp$C1"
}
}
module C2 = {
let a = "foo"
@res.jsxComponentProps
type props<'a> = {
a?: 'a,
}
let make = ({a: ?__a, _}: props<_>) => {
let a = switch __a {
| Some(a) => a
| None => a
}
(React.string(a): React.element)
}
let make = {
let \"DefaultValueProp$C2" = (props: props<_>) => make(props)
\"DefaultValueProp$C2"
}
}
module C3 = {
@res.jsxComponentProps
type props<'disabled> = {
disabled?: 'disabled,
}
let make = ({disabled: ?__everythingDisabled, _}: props<bool>) => {
let everythingDisabled = switch __everythingDisabled {
| Some(disabled) => disabled
| None => false
}
(
{
React.string(everythingDisabled ? "true" : "false")
}: React.element
)
}
let make = {
let \"DefaultValueProp$C3" = (props: props<_>) => make(props)
\"DefaultValueProp$C3"
}
}