1.0.2 • Published 7 years ago
react-stick-it v1.0.2
React StickIt
Simple React sticky without the bullshit.
import React from 'react'
import StickIt from 'react-stick-it'
const Sidebar = props => <div>Sticky sidebar</div>
const scrollAfter = 100
export default StickIt(Sidebar, scrollAfter)
Please note
I don't reserve any credit for this. It's the most basic sticky HOC I put together having read many others out there, this one fits my purpose.
I'm also using this as a way to experiment pushing react components to NPM.