Skip to content

Commit

Permalink
Merge pull request #105 from marzuk-zarir/master
Browse files Browse the repository at this point in the history
  • Loading branch information
hugocxl authored Oct 4, 2024
2 parents 5485196 + 2359b15 commit 1b95db6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ import { useToPng } from '@hugocxl/react-to-image'

export default function App() {
const [{ isLoading }, convert, ref] = useToPng<HTMLDivElement>({
onSuccess: data => {
onSuccess: dataUrl => {
const img = new Image();
img.src = dataUrl;
document.body.appendChild(img);
Expand Down

0 comments on commit 1b95db6

Please sign in to comment.