In my react app, I am trying to fetch the elements using document.getElementByID("id_of_div") to write to the UI using innerHTML as shown in the code below. I am using react and interacting with the DOM directly, which isn't the React way of doing things. Please suggest how I can change this approach and write my data, stored as object to the UI in react. Thanks in Advance.In my react app, I am trying to fetch the eleme