mirror of
https://github.com/streamich/react-use.git
synced 2026-01-25 14:17:16 +00:00
useWindowScroll doc typos
This commit is contained in:
parent
c75f997f8e
commit
71eb416953
@ -1,4 +1,4 @@
|
||||
# `useWindowSize`
|
||||
# `useWindowScroll`
|
||||
|
||||
React sensor hook that re-renders on window scroll
|
||||
|
||||
|
||||
@ -8,14 +8,14 @@ const Demo = () => {
|
||||
|
||||
return (
|
||||
<div style={{
|
||||
width: "200vw",
|
||||
height: "200vh"
|
||||
width: '200vw',
|
||||
height: '200vh'
|
||||
}}>
|
||||
<div style={{
|
||||
position: "fixed",
|
||||
position: 'fixed',
|
||||
left: 0,
|
||||
right: 0}}
|
||||
>
|
||||
right: 0
|
||||
}}>
|
||||
<div>x: {x}</div>
|
||||
<div>y: {y}</div>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user