mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
22 lines
496 B
TypeScript
22 lines
496 B
TypeScript
//// [tests/cases/compiler/jsxNestedIndentation.tsx] ////
|
|
|
|
//// [jsxNestedIndentation.tsx]
|
|
declare var React: any;
|
|
declare function Child(props: { children?: any }): any;
|
|
function Test() {
|
|
return <Child>
|
|
<Child>
|
|
<Child></Child>
|
|
</Child>
|
|
</Child>
|
|
}
|
|
|
|
|
|
//// [jsxNestedIndentation.js]
|
|
"use strict";
|
|
function Test() {
|
|
return React.createElement(Child, null,
|
|
React.createElement(Child, null,
|
|
React.createElement(Child, null)));
|
|
}
|