Skip to content

Commit c2debbd

Browse files
authored
Merge pull request #32 from OnedocLabs/AugusteLef-patch-2
Update README.md add snippet html generation
2 parents a32f52d + 778a598 commit c2debbd

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ import { PageTop, PageBottom, PageBreak } from "@fileforge/react-print";
8989
Integrate your components and include styles where needed.
9090

9191
```javascript
92-
export const document = ({ props }) => {
92+
export const Document = ({ props }) => {
9393
return (
9494
<div>
9595
<PageTop>
@@ -106,6 +106,14 @@ export const document = ({ props }) => {
106106
};
107107
```
108108

109+
## 4. Generate HTML 💻
110+
```javascript
111+
import { compile } from "@fileforge/react-print";
112+
113+
const html = await compile(<Document />);
114+
115+
```
116+
109117
# Components 🗂️
110118

111119
A set of standard components to help you build amazing documents without having to deal with the mess of creating complex layouts and maintaining archaic markup. Help us extend this list by actively contributing and adding your favorite components!

0 commit comments

Comments
 (0)