hyper-react
hyper-react copied to clipboard
children method does not respond to empty?
children.empty?
Seems to be just the way ruby works? perhaps there is a better way to define an enumerable?
I think there is no reason to stop us from adding empty? to React::Children
yeah I'm okay with that... but it seems odd. Perhaps there is a different way to create an enumerable we should be using? The reason I say that, is what else are we missing that we should be getting?
Ruby's Enumerable doesn't provide empty? method, it got something similar which is any?.