TypeScript/tests/cases/conformance/jsx/checkJsxChildrenProperty9.tsx

12 lines
346 B
TypeScript
Raw Normal View History

2017-04-15 00:23:48 +02:00
// @filename: file.tsx
// @jsx: preserve
// @noLib: true
// @skipLibCheck: true
2017-04-15 00:23:48 +02:00
// @libFiles: react.d.ts,lib.d.ts
import React = require('react');
// OK
let k1 = <div> <h2> Hello </h2> <h1> world </h1></div>;
let k2 = <div> <h2> Hello </h2> {(user: any) => <h2>{user.name}</h2>}</div>;
let k3 = <div> {1} {"That is a number"} </div>;