ref = {(node) => (this.avatAreditor = node)}

this.nodeRef = React.createRef();

...

<Comp ref={this.nodeRef}/>
Different Donkey