diff options
Diffstat (limited to 'tests/specs/run/_046_tsx/046_jsx_test.tsx')
-rw-r--r-- | tests/specs/run/_046_tsx/046_jsx_test.tsx | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/specs/run/_046_tsx/046_jsx_test.tsx b/tests/specs/run/_046_tsx/046_jsx_test.tsx new file mode 100644 index 000000000..5ed3ff2fa --- /dev/null +++ b/tests/specs/run/_046_tsx/046_jsx_test.tsx @@ -0,0 +1,14 @@ +declare global { + export 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 />); |