UNPKG

@pdf-viewer/react

Version:

A react-pdf-viewer component for React and Next.js. Suitable for react-pdf document.

9 lines (8 loc) 156 B
import { forwardRef as r } from "react"; const c = (o) => r ? r(o) : (t) => { const { ref: n, ...e } = t; return o(e, n); }; export { c as withRef };