Skip to content

Commit 73b9745

Browse files
Copilotjakebailey
andcommitted
Add test case for JSX nested indentation issue
Co-authored-by: jakebailey <[email protected]>
1 parent fbb9ead commit 73b9745

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// @target: esnext
2+
// @jsx: react
3+
// @strict: true
4+
// @noEmit: false
5+
function Test() {
6+
return React.createElement(Child, null,
7+
React.createElement(Child, null,
8+
React.createElement(Child, null)));
9+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// @target: esnext
2+
// @jsx: react
3+
// @strict: true
4+
// @noEmit: false
5+
6+
declare var React: any;
7+
declare function Child(props: { children?: any }): any;
8+
function Test() {
9+
return <Child>
10+
<Child>
11+
<Child></Child>
12+
</Child>
13+
</Child>
14+
}

0 commit comments

Comments
 (0)