mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 11:13:43 +03:00
10 lines
251 B
TypeScript
10 lines
251 B
TypeScript
// @jsx: react-jsx,react-jsxdev
|
|
// @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 {};
|