react-sticky-element-watcher React component
The CSS property position: sticky lacks an :active pseudo-class for applying styles when a element is "stuck".
npm install react-sticky-element-watcher
`Usage
`js
import React from 'React'
import StickyElementWatcher from 'react-sticky-element-watcher'export default () => (
render={({ isStuck }) => (
position: 'sticky',
top: '10px',
backgroundColor: isStuck ? 'red' : 'white'
}}>
Logo: link1, link2
)}
/>
)
``