title: Getting input from a content editable div in react
body: <p>Change handler</p>
  <pre><code>const contentref=useRef()
  const handleclick=()=&gt;{
     setContent(contentref.current.value)
     console.log(contentref.current.value)
  }  
     
  </code></pre>
  <p>Tag</p>
  <pre><code>&lt;div
      name=&quot;textbox&quot;  
      ref ={contentref}  
      className=&quot;textbox&quot; 
      onChange={e=&gt;handleclick()} 
      contentEditable=&quot;true&quot; 
      role=&quot;textbox&quot; 
      aria-multiline=&quot;true&quot; 
      tabIndex=&quot;0px&quot; 
      placeholder=&quot;Type something...&quot;  
      spellCheck=&quot;false&quot;&gt;
  &lt;/div&gt;
  </code></pre>
  <p>I have been trying to get the input from the content editable div but it is not returning anything.</p>