@crowdin/app-project-module
Version:
Module that generates for you all common endpoints for serving standalone Crowdin App
15 lines (14 loc) • 456 B
TypeScript
import type { FC } from 'react';
/**
* Renders a React component to HTML string
* Uses React Server-Side Rendering (renderToStaticMarkup)
*/
export declare function renderJSXOnServer<P = any>(Component: FC<P>, props: P): string;
/**
* Renders a React component to HTML string to be hydrated on client side
*/
export declare function renderJSXOnClient({ name, props, withHead, }: {
name: string;
props: any;
withHead?: boolean;
}): string;