package
Agnostic jsx template engine.
npm install jsx-template-engineGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
Featuresjsx-engine.babel-core.Installation# npm
$ npm install jsx-template-engine
# yarn
$ yarn add jsx-template-engineUsageThis is a practical example of how to use.
import jsx from "jsx-template-engine";
(async () => {
const htmlString = await jsx.render("export default () => <div>100</div>");
// <div>100</div>
})();APIimportComponent(path: string): string:a sync method to import jsx component from a file.
render/jsxEngine (code: string, payload: Props =, path?: string):an async method to parse the the jsx code string to html string where you can pass props as payload param and a path param for used and compose files.
Estimated unpacked size across 38 packages.
4.2 MB
Includes dependencies.
4 direct · 3 outdated