title: target DOM element with React.createPortal
body: <p>I would like to get the innerHTML of a div with the className "editor" which i am passing in through useContext. Once I receive the innerHTML, I will append it to a div with the className "getcontent". Currently, my code is giving me an error message "Error: Target container is not a DOM element." I have created a <a href="https://codesandbox.io/s/romantic-turing-yxx6j" rel="nofollow noreferrer">Codesandbox</a> . Thanks In Advance!</p>