This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@diagoriente/react-preview-a4
TypeScript icon, indicating that this package has built-in type declarations

0.2.5 • Public • Published

react-preview-a4

📄 A responsive print preview in A4 format.

Table of Contents

Installation

To install, you can use npm:

$ npm install --save @diagoriente/react-preview-a4
$ yarn add @diagoriente/react-preview-a4

Examples

Here is a simple example of react-preview-a4:

import React from "react";
import ReactDOM from "react-dom";
import PreviewA4 from "react-preview-a4";

function App() {
  // your code

  return (
    <div>
      <PreviewA4>
        <h1>Your code</h1>
      </PreviewA4>
    </div>
  );
}

ReactDOM.render(<App />, appElement);

You can find the example in the examples directory, which you can run in a local development server using npm start or yarn start.

Demo

There is a demo hosted on CodeSandbox.

Dependencies (2)

Dev Dependencies (41)

Package Sidebar

Install

npm i @diagoriente/react-preview-a4

Weekly Downloads

34

Version

0.2.5

License

ISC

Unpacked Size

12 kB

Total Files

13

Last publish

Collaborators

  • mteterel