how to get element from React component code example Example: cre&atRefs react js const node = this.myRef.current;