Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class App extends React.Component {
- render() {
- console.log("App---->");
- return (
- <StickyContainer>
- {/* Other elements can be in between `StickyContainer` and `Sticky`,
- but certain styles can break the positioning logic used. */}
- <div>
- I am sticky------------------------------------------------------->
- </div>
- <Sticky>
- {({
- style,
- // the following are also available but unused in this example
- isSticky,
- wasSticky,
- distanceFromTop,
- distanceFromBottom,
- calculatedHeight
- }) => <header style={style}>{}</header>}
- </Sticky>
- <SearchBar />
- <div>I am sticky</div>
- <WholeText />
- <UploadDocuments />
- <VerticalLinearStepper />
- {/* ... */}
- </StickyContainer>
- );
- }
- }
Add Comment
Please, Sign In to add comment