Skip to content

Commit

Permalink
Update README.md add snippet html generation
Browse files Browse the repository at this point in the history
  • Loading branch information
AugusteLef authored Jun 3, 2024
1 parent a32f52d commit 778a598
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ import { PageTop, PageBottom, PageBreak } from "@fileforge/react-print";
Integrate your components and include styles where needed.

```javascript
export const document = ({ props }) => {
export const Document = ({ props }) => {
return (
<div>
<PageTop>
Expand All @@ -106,6 +106,14 @@ export const document = ({ props }) => {
};
```

## 4. Generate HTML 💻
```javascript
import { compile } from "@fileforge/react-print";

const html = await compile(<Document />);

```

# Components 🗂️

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!
Expand Down

0 comments on commit 778a598

Please sign in to comment.