summaryrefslogtreecommitdiff
path: root/tests/testdata/check/jsx_not_checked/main.jsx
blob: 8de05f9f7c8c3b3afdc8985f13719ed608d052b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// should not error about jsx-runtime not being found in types here
/** @jsxImportSource npm:react@18.2.0 */

import "./other.ts";

export default (
  <>
    <h1>Hello world</h1>
    <p>This is a JSX page</p>
  </>
);

/**
 * @param {number} a
 * @param {number} b
 */
function add(a, b) {
  return a + b;
}

console.log(add("1", "2"));