1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-01 16:51:13 -05:00
denoland-deno/tests/testdata/check/jsx_not_checked/main.jsx

22 lines
337 B
React
Raw Normal View History

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