I want to get the children of ReactDOM.findDOMNode(this) so that I can style based on refs. specifically display none one some refs and yes on others.
I thought I could
blockNode = ReactDOM.findDOMNode(this).children
React.Children.map(blockNode, function(el) {
console.log('el ',el);
})
error response:
invariant.js:39 Uncaught Invariant Violation: Objects are not valid as a React child (found: [object HTMLDivElement]). If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons.
P.S. Also tried wrapping blockNode in createFragment() but no good