From 6c886276abf9bafbfafffd29d8b584c221965d17 Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Tue, 5 Jul 2022 14:47:37 +0200 Subject: [PATCH] Add Preact section to documentation on compatibility --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 3ce7f0210..1de8ba8e3 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,10 @@ If you use an older version of React, please refer to the table below to a find | ≥16.3 | 5.x | | ≥15.5 | 4.x | +#### Preact + +React-PDF may be used with Preact. However, if you want to use text layer in PDFs rendered by React-PDF, you'll also need to install `preact-render-to-string` package. + ### Installation Add React-PDF to your project by executing `npm install react-pdf` or `yarn add react-pdf`.