react-scroll-sync
react-scroll-sync copied to clipboard
Stop using React.Children.only
Why is ScrollSync
using React.Children.only
in its render
method? It is a bit inconvenient and I cannot see a reason for it, although I may be missing something..
I’m not sure anymore and the whole thing is better be using the new context api and hooks perhaps so feel free to submit a PR
I think I can do that this week if I find myself with some time to spare at work 🙃
https://stackoverflow.com/questions/48837831/why-react-children-only