Skip to content

Commit

Permalink
React 19 updates, dev dependency upgrades
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewHerbst committed Dec 22, 2024
1 parent 62bef7c commit 751c2e1
Show file tree
Hide file tree
Showing 6 changed files with 618 additions and 670 deletions.
2 changes: 1 addition & 1 deletion examples/BasicComponent/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { useReactToPrint } from "../../src/hooks/useReactToPrint";
* A basic printing example printing a component
*/
export const BasicComponent = () => {
const componentRef = React.useRef(null);
const componentRef = React.useRef<HTMLDivElement>(null);

const handleAfterPrint = React.useCallback(() => {
console.log("`onAfterPrint` called"); // tslint:disable-line no-console
Expand Down
Loading

0 comments on commit 751c2e1

Please sign in to comment.