Skip to content

Commit

Permalink
Merge pull request #32 from OnedocLabs/AugusteLef-patch-2
Browse files Browse the repository at this point in the history
Update README.md add snippet html generation
  • Loading branch information
Titou325 authored Jun 3, 2024
2 parents a32f52d + 778a598 commit c2debbd
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 c2debbd

Please sign in to comment.