useful-react-components
v0.1.0
Published
Useful react component, can be installed in any react app
Readme
useful-react-components
The ScrollUp component is a reusable React component that provides a convenient and easy-to-use method for quickly scrolling to the top of the page. This component is ideal for use in applications where users may need to navigate to different parts of the page, but also require the ability to easily return to the top.
Installation
To use the ScrollUp component in your React application, simply install the component via npm using the following command:
npm install useful-react-componentsOnce installed, you can import the component into your application and use it as follows:
Usage
import React from 'react';
import ScrollUp from 'useful-react-components';
function App() {
return (
<div>
<ScrollUp>Click me!</ScrollUp>
</div>
);
}
export default App;