swc/crates/swc_ecma_parser/tests/tsc/jsxJsxsCjsTransformKeyPropCustomImport.tsx
2022-02-04 17:08:38 +09:00

11 lines
279 B
TypeScript

// @jsx: react-jsx,react-jsxdev
// @jsxImportSource: preact
// @strict: true
// @module: commonjs
/// <reference path="/.lib/react16.d.ts" />
const props = { answer: 42 }
const a = <div key="foo" {...props}>text</div>;
const b = <div {...props} key="bar">text</div>;
export {};