diff --git a/README.md b/README.md index 33df062..38df065 100644 --- a/README.md +++ b/README.md @@ -249,7 +249,7 @@ import { useToPng } from '@hugocxl/react-to-image' export default function App() { const [{ isLoading }, convert, ref] = useToPng({ - onSuccess: data => { + onSuccess: dataUrl => { const img = new Image(); img.src = dataUrl; document.body.appendChild(img);