Skip to content

Commit

Permalink
fix docs error in README.md file
Browse files Browse the repository at this point in the history
  • Loading branch information
marzuk-zarir authored Oct 3, 2024
1 parent 5485196 commit 2359b15
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 2359b15

Please sign in to comment.