keith-gould-zocdoc
keith-gould-zocdoc
@smolak Yeah I'm having the same issue... I wonder if this would be solved if the Sticky component was designed to accept a React Component or a function? Technically it's...
@dbarbalato Well at first i tried it just the standard way of plugging in a function as the child like you do in the guide. That works in practice, but...
I was able to get around this by just mocking Sticky using jest like so: ``` jest.mock('react-sticky', () => ({ Sticky: (props) => props.children({ isSticky: false, style: {} }), }));...