Skip to content

golmansax/react-simple-invoice

Repository files navigation

React simple invoice

A React component inspired by this simple HTML invoice template (https://github.com/sparksuite/simple-html-invoice-template).

Server-side usage

import express from 'express';
import React from 'react';
import { renderToStaticMarkup } from 'react-dom/server';
import { Invoice } from 'react-simple-invoice';

const app = express()

app.get('/', (req, res) => {
  const html = renderToStaticMarkup(
    <Invoice
      invoice={invoice}
      customer={customer}
      company={company}
    />
  );

  res.send(`<!doctype html>${html}`);
});

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published