1.1.2 • Published 3 years ago

jsx-to-str v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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";
1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.1

7 years ago

1.0.0

7 years ago