Skip to content

render

Render the React element as printable binary data.

Signature

typescript
function render(elem: ReactElement<PrinterProps>, options?: RenderOptions): Promise<Uint8Array>;

Parameters

  • elemRequired · ReactElement<PrinterProps>

    The React element to render.

  • options · RenderOptions

    Optional rendering options.

Returns

  • Promise<Uint8Array>

    The printable binary data.