-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## [1.0.3](v1.0.2...v1.0.3) (2023-03-10) ### Bug Fixes * support tsx ([202bb5d](202bb5d))
- Loading branch information
1 parent
202bb5d
commit 3a4d820
Showing
4 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/// <reference types="react" /> | ||
declare const SayHello: ({ name }: { | ||
name: string; | ||
}) => JSX.Element; | ||
export default SayHello; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var react_1 = __importDefault(require("react")); | ||
var SayHello = function (_a) { | ||
var name = _a.name; | ||
return (react_1.default.createElement("div", null, | ||
"Hey ", | ||
name, | ||
", say hello to TypeScript.")); | ||
}; | ||
exports.default = SayHello; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/// <reference types="react" /> | ||
declare const SayHello: ({ name }: { | ||
name: string; | ||
}) => JSX.Element; | ||
export default SayHello; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import React from "react"; | ||
var SayHello = function (_a) { | ||
var name = _a.name; | ||
return (React.createElement("div", null, | ||
"Hey ", | ||
name, | ||
", say hello to TypeScript.")); | ||
}; | ||
export default SayHello; |