阅读背景:

如何获取div元素而不访问React中的DOM?

来源:互联网 

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




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: