Browse Source

[Beta] Add deps to useEffect example

main
dan 2 years ago
committed by GitHub
parent
commit
b3b6eddea8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      beta/src/content/learn/escape-hatches.md

2
beta/src/content/learn/escape-hatches.md

@ -117,7 +117,7 @@ function VideoPlayer({ src, isPlaying }) {
} else {
ref.current.pause();
}
});
}, [isPlaying]);
return <video ref={ref} src={src} loop playsInline />;
}

Loading…
Cancel
Save