A easy to use component to make somethin stick on the top of your screen
- React 16 compatible
- SSR compatible
https://ultimatejs.babyblox.nl/sticky
Install with npm
npm install @wicked_query/react-sticky --save
Or with yarn
yarn add @wicked_query/react-sticky
<Sticky>
<div>
Stick to top
</div>
</Sticky>
- No margins. The wrapped tag may not have a margin.
- You can only wrap html tags, no React Components.
- Does not work on google chrome mobile, but why?
------------------------
Happy coding