Open igorsantos07 opened 6 years ago
This could be solved by #19. As a workaround, I'm doing the following:
<ScrollableAnchor id="test"> <div> <MyStatelessComponent/> </div> </ScrollableAnchor>
The error is as follows:
Warning: Stateless function components cannot be given refs. Attempts to access this ref will fail. Check the render method of ScrollableAnchor.
ScrollableAnchor
Then, it also throws what's described in #43. Using the div hack solves the matter.
An even better workaround for both this and #19 at the same time: <ScrollableAnchor id="test"><div/><ScrollableAnchor>
<ScrollableAnchor id="test"><div/><ScrollableAnchor>
This could be solved by #19. As a workaround, I'm doing the following:
The error is as follows:
Then, it also throws what's described in #43. Using the div hack solves the matter.