UNPKG

aroma-jsx-engine

Version:

A lightweight and flexible JSX/TSX engine for rendering React components in Node.js applications. Designed to work seamlessly with the [`aroma.js`](https://www.npmjs.com/package/aroma.js) framework, this package allows you to compile and render JSX/TSX co

7 lines (6 loc) 305 B
declare module 'aroma-jsx-engine' { import { ComponentType } from 'react'; export function compile(code: string): ComponentType<any>; export function render(component: ComponentType<any>, props?: object): string; export function loadFromFile(filePath: string): ComponentType<any>; }