@wapps/react-scroll
v0.0.8
Published
React scroll component
Downloads
16
Readme
react-scroll
React scroll compoment
Installation
npm install --save @wapps/react-scroll
How to use
import React from 'react';
import Scroll from '@wapps/react-scroll';
const App = messages => (
<div style={{ overflow: 'scroll' }}>
{messages.map((message, index) => (
<Scroll key={index} behavior="smooth">
{message}
</Scroll>
))}
</div>
);
export default App;
Live Demo
For a demo, check out https://hupe1980.github.io/wapps-components/