1.1.2 • Published 2 years ago

jsx-to-str v1.1.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 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

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.1

6 years ago

1.0.0

6 years ago