okonet/react-scroll-sync

Stop using React.Children.only

acontreras89 opened this issue · 3 comments

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 🙃