diff options
Diffstat (limited to 'cli/tests/testdata/046_jsx_test.tsx')
| -rw-r--r-- | cli/tests/testdata/046_jsx_test.tsx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cli/tests/testdata/046_jsx_test.tsx b/cli/tests/testdata/046_jsx_test.tsx new file mode 100644 index 000000000..a96e90baf --- /dev/null +++ b/cli/tests/testdata/046_jsx_test.tsx @@ -0,0 +1,12 @@ +declare namespace JSX { + interface IntrinsicElements { + [elemName: string]: any; + } +} +const React = { + createElement(factory: any, props: any, ...children: any[]) { + return { factory, props, children }; + }, +}; +const View = () => <div class="deno">land</div>; +console.log(<View />); |
