how to add elements in dom using ref in react js code example Example: cre&atRefs react js const node = this.myRef.current;