UNPKG

@crowdin/app-project-module

Version:

Module that generates for you all common endpoints for serving standalone Crowdin App

16 lines (15 loc) 481 B
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, head, withHead, }: { name: string; props: any; head?: string; withHead?: boolean; }): string;