Skip to content

Commit fabda42

Browse files
authored
Update Recipes.md
1 parent 01e7c32 commit fabda42

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/Recipes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const LazyImage = ({ width, height, src, ...rest }) => {
4444
const supportsLazyLoading = useNativeLazyLoading()
4545
const [ref, inView] = useInView({
4646
triggerOnce: true,
47-
margin: '200px 0px',
47+
rootMargin: '200px 0px',
4848
})
4949

5050
return (

0 commit comments

Comments
 (0)