React hook to synchronise the scroll position of multiple containers.
npm install use-sync-scroll-hook> React hook to synchronise the scroll position of multiple containers.
 
https://slocka.github.io/use-sync-scroll-hook/
``bash`
npm install --save use-sync-scroll-hook`
orbash`
yarn add use-sync-scroll-hook
`jsx
import React, { useRef } from 'react'
import useSyncScroll from 'use-sync-scroll-hook'
export default function Example() {
const headerRef = useRef()
const bodyRef = useRef()
useSyncScroll([headerRef, bodyRef])
return (
MIT © slocka