scroll UI library that can be used in React projects.
npm install react-hook-scrollReact-Hook-Scroll" is a scroll UI library that can be used in React projects.
It is designed to be compatible with both desktop and mobile environments.
``shell`
npm i react-hook-scroll
`jsx
import { useState } from "react";
import { VirtualScroll } from "react-hook-scroll";
function App() {
const [selected, setSelected] = useState(null);
return (
<>
>
);
}
`
!react-hook-scroll
The VirtualScroll component requires two required profiles.
- list: need a list to let the user choose.
- onItemSelected: The action to be taken with the item selected by the user is required.
`jsx
import { ScrollToTop } from "react-hook-scroll";
return (
<>
>
);
``
Development happens in the open on GitHub and we are grateful for contributions
including bug fixes, improvements, and ideas.
React-Hook-Scroll is MIT licensed.