summaryrefslogtreecommitdiff
path: root/cli/tests/046_jsx_test.tsx
blob: a3df2aad7543078b7f3f1e802ce155e2ff98a227 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 />)