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