Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 373 Bytes

README.md

File metadata and controls

16 lines (12 loc) · 373 Bytes

POS Print Previewer React

Previewer of template for POS Print in React

Usage

import { hydrate } from 'pos-print-template-jsx';
import Previewer from 'pos-print-previewer-react';

function render(props) {
  const { template, style, data, printer } = props;
  const dom = hydrate(template, style, data, printer);
  return <Previewer dom={dom} />;
}