1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-27 16:10:57 -05:00
denoland-deno/cli/tests/testdata/check/jsx_not_checked/main.jsx
2023-07-27 14:09:02 -04:00

21 lines
337 B
JavaScript

// 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"));