mirror of
https://github.com/swc-project/swc.git
synced 2024-12-01 01:13:56 +03:00
11 lines
279 B
TypeScript
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 {};
|