paged-react 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,7 +15,9 @@ Import the components and the package stylesheet once in your app.
|
|
|
15
15
|
```tsx
|
|
16
16
|
import { Document, PageBreak, pageSizes } from "paged-react";
|
|
17
17
|
import "paged-react/styles.css";
|
|
18
|
-
// The package imports its base CSS from the main entry.
|
|
18
|
+
// The package imports its base CSS from the main entry.
|
|
19
|
+
// If your bundler does not load library CSS side effects,
|
|
20
|
+
// then import `paged-react/styles.css` manually.
|
|
19
21
|
|
|
20
22
|
export function Report() {
|
|
21
23
|
return (
|
|
@@ -54,7 +56,8 @@ export function Report() {
|
|
|
54
56
|
|
|
55
57
|
```tsx
|
|
56
58
|
import { useRef } from "react";
|
|
57
|
-
|
|
59
|
+
// npm i react-to-print
|
|
60
|
+
import { useReactToPrint } from "react-to-print";
|
|
58
61
|
import { Document, pageSizes } from "paged-react";
|
|
59
62
|
import "paged-react/styles.css";
|
|
60
63
|
|