Array.from('string')
[...'string'] const component = ReactDOM.findDOMNode(TestUtils.renderIntoDocument(
<MyComponent {...props} />
));
we should be writing let node;
const component = TestUtils.renderIntoDocument(
<MyComponent {...props} ref={n => node = n}/>
);
https://gist.github.com/gaearon/7f0e03d3028016bfabfad641720d...