mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
22 lines
715 B
TypeScript
22 lines
715 B
TypeScript
//// [tests/cases/conformance/jsx/checkJsxChildrenProperty9.tsx] ////
|
|
|
|
//// [file.tsx]
|
|
/// <reference path="/.lib/react.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>;
|
|
|
|
//// [file.jsx]
|
|
"use strict";
|
|
/// <reference path="/.lib/react.d.ts" />
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
const React = require("react");
|
|
// OK
|
|
let k1 = <div> <h2> Hello </h2> <h1> world </h1></div>;
|
|
let k2 = <div> <h2> Hello </h2> {(user) => <h2>{user.name}</h2>}</div>;
|
|
let k3 = <div> {1} {"That is a number"} </div>;
|