react: BUG: React.findDOMNode(this) always null in higher-order-component (0.13.3)
const higherOrderComponent = (Component) => React.createClass({
componentDidMount() {
console.log( React.findDOMNode(this) ); // => null
},
render() {
return <Component {...this.props} />;
}
});
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 16 (2 by maintainers)
The bug only happens if the wrapped component returns null the first time
render()is called.I did something wrong in my own code @olegerm but I don’t remember what that was anymore.