import * as Sticky from 'react-stickynode'; import * as React from 'react'; const StickyAllOptions: JSX.Element = ( s.status === Sticky.StatusCode.STATUS_ORIGINAL} shouldFreeze={() => false} >
); const StickyOptionalStringOptions: JSX.Element = (
); const StickyNoOptions: JSX.Element = (
); const StickyChildrenFunction: JSX.Element = ( {status => { if (status.status === Sticky.STATUS_FIXED) { return 'the component is sticky'; } if (status.status === Sticky.STATUS_ORIGINAL) { return 'the component in the original position'; } return 'the component is released'; }} );