File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed
tests/cases/conformance/jsx Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ // @filename : file.tsx
2
+ // @jsx : react
3
+ // @noLib : true
4
+ // @libFiles : react.d.ts,lib.d.ts
5
+
6
+ import React = require( 'react' ) ;
7
+
8
+ function SFC1 ( prop : { x : number } ) {
9
+ return < div > hello</ div > ;
10
+ } ;
11
+
12
+ function SFC2 ( prop : { x : boolean } ) {
13
+ return < h1 > World </ h1 > ;
14
+ }
15
+
16
+ var SFCComp = SFC1 || SFC2 ;
17
+ < SFCComp x />
Original file line number Diff line number Diff line change
1
+ // @filename : file.tsx
2
+ // @jsx : react
3
+ // @noLib : true
4
+ // @libFiles : react.d.ts,lib.d.ts
5
+
6
+ import React = require( 'react' ) ;
7
+
8
+ function SFC1 ( prop : { x : number } ) {
9
+ return < div > hello</ div > ;
10
+ } ;
11
+
12
+ function SFC2 ( prop : { x : boolean } ) {
13
+ return < h1 > World </ h1 > ;
14
+ }
15
+
16
+ var SFCComp = SFC1 || SFC2 ;
17
+ < SFCComp x = { "hi" } />
You can’t perform that action at this time.
0 commit comments