ReactDomNode
obsidianart opened this issue · comments
stefano solinas commented
ReactDOM.findDOMNode is discourage (and it's not imported so the module was crashing).
render() {
return <canvas ref={(c) => this.canvas = c} />;
}
draw() {
if (!this.canvas) return;
let canvas = this.canvas
晏兵兵 commented
thank you for your issue