jsx-to-str
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

jsx-to-str

Very simple and tiny jsx to string converter

Installation

npm install jsx-to-str

tsconfig.json

    "jsx": "react",
    "jsxFactory": "h",
    "jsxFragmentFactory": "Fragment",

Through directive

If you cannot or don't want to set jsxFactory in tsconfig.json, in every jsx file add directives:

/** @jsx h */
/** @jsxFrag Fragment */

JSX

In every jsx file import jsx-to-str

import { h, Fragment } from "jsx-to-str";

Readme

Keywords

none

Package Sidebar

Install

npm i jsx-to-str

Weekly Downloads

0

Version

1.1.2

License

MIT

Unpacked Size

7.13 kB

Total Files

5

Last publish

Collaborators

  • fabeuluci