reactto pdf code example Example 1: react to pdf npm install @react-pdf/renderer --save Example 2: react to pdf yarn add @react-pdf/renderer