@@ -29,21 +29,21 @@ let _single_element_fragment = <>
29
29
30
30
let _multiple_element_fragment = < >
31
31
< input
32
- type = "text"
32
+ type = { "text" }
33
33
/>
34
34
< input
35
- type = "number"
35
+ type = { "number" }
36
36
/>
37
37
</ > ;
38
38
39
39
let _unary_element_with_props = < input
40
- className = "foo"
41
- type = "text"
40
+ className = { "foo" }
41
+ type = { "text" }
42
42
/> ;
43
43
44
44
let _container_element_with_props_and_children = < div
45
- className = "foo"
46
- title = "foo"
45
+ className = { "foo" }
46
+ title = { "foo" }
47
47
>
48
48
{ "Hello, world!" }
49
49
</ div > ;
@@ -57,19 +57,19 @@ let newrecord = {...baseProps};
57
57
58
58
let _unary_element_with_spread_props = < input
59
59
{ ...newrecord }
60
- type = "text"
60
+ type = { "text" }
61
61
/> ;
62
62
63
63
let newrecord$1 = { ...baseProps } ;
64
64
65
65
let _container_with_spread_props = < div
66
66
{ ...newrecord$1 }
67
- title = "barry"
68
- className = "barry"
67
+ title = { "barry" }
68
+ className = { "barry" }
69
69
>
70
70
{ "Hello, world!" }
71
71
< input
72
- type = "text"
72
+ type = { "text" }
73
73
/>
74
74
</ div > ;
75
75
@@ -83,8 +83,8 @@ let baseChildren = [
83
83
] ;
84
84
85
85
let _container_with_spread_children = < div
86
- className = "barry"
87
- title = "barry"
86
+ className = { "barry" }
87
+ title = { "barry" }
88
88
>
89
89
{ baseChildren }
90
90
</ div > ;
@@ -93,31 +93,31 @@ let newrecord$2 = {...baseProps};
93
93
94
94
let _container_with_spread_props_and_children = < div
95
95
{ ...newrecord$2 }
96
- title = "barry"
97
- className = "barry"
96
+ title = { "barry" }
97
+ className = { "barry" }
98
98
>
99
99
{ baseChildren }
100
100
</ div > ;
101
101
102
102
let newrecord$3 = { ...baseProps } ;
103
103
104
104
let _unary_element_with_spread_props_keyed = < input
105
- key = "barry-key"
105
+ key = { "barry-key" }
106
106
{ ...newrecord$3 }
107
- type = "text"
107
+ type = { "text" }
108
108
/> ;
109
109
110
110
let newrecord$4 = { ...baseProps } ;
111
111
112
112
let _container_with_spread_props_keyed = < div
113
- key = "barry-key"
113
+ key = { "barry-key" }
114
114
{ ...newrecord$4 }
115
- title = "barry"
116
- className = "barry"
115
+ title = { "barry" }
116
+ className = { "barry" }
117
117
>
118
118
{ "Hello, world!" }
119
119
< input
120
- type = "text"
120
+ type = { "text" }
121
121
/>
122
122
</ div > ;
123
123
@@ -156,29 +156,29 @@ let MyWeirdComponent = {
156
156
} ;
157
157
158
158
let _escaped_jsx_prop = < Jsx_preserve_test$MyWeirdComponent
159
- MyWeirdProp = "bar"
159
+ MyWeirdProp = { "bar" }
160
160
/> ;
161
161
162
162
let _large_component = < div
163
- className = "bar"
163
+ className = { "bar" }
164
164
tabIndex = { 1 }
165
- title = "foo"
165
+ title = { "foo" }
166
166
onClick = { param => { } }
167
167
onMouseDown = { param => { } }
168
168
>
169
169
< p
170
- className = "bar"
170
+ className = { "bar" }
171
171
tabIndex = { 1 }
172
- title = "foo"
172
+ title = { "foo" }
173
173
onClick = { param => { } }
174
174
onMouseDown = { param => { } }
175
175
>
176
176
{ "Hello, world!" }
177
177
</ p >
178
178
< strong
179
- className = "bar"
179
+ className = { "bar" }
180
180
tabIndex = { 1 }
181
- title = "foo"
181
+ title = { "foo" }
182
182
onClick = { param => { } }
183
183
onMouseDown = { param => { } }
184
184
>
@@ -199,13 +199,13 @@ let ComponentWithOptionalProps = {
199
199
200
200
let _optional_props = < Jsx_preserve_test$ComponentWithOptionalProps
201
201
i = { 1 }
202
- s = "test"
202
+ s = { "test" }
203
203
element = { < div /> }
204
204
/> ;
205
205
206
206
let _props_with_hyphen = < label
207
- aria-label = "close sidebar"
208
- data-testid = "test"
207
+ aria-label = { "close sidebar" }
208
+ data-testid = { "test" }
209
209
/> ;
210
210
211
211
export {
0 commit comments