react textArea height does not change

ref={el =>{
                    if(el){
                        el.textareaRef.style.height = el.textareaRef.scrollHeight + 'px';
                    }
                }
                }

  

Guess you like

Origin www.cnblogs.com/web-Rain/p/11880761.html