简体   繁体   中英

How React Virtual DOM works with third party js plugins?

How React Virtual DOM works with third party js plugins? For instance , If we use leaflet or jquery libs which will directly communicates with real dom Then how react virtual dom handle these real dom manipulations.

first of all, I don't see a good reason to have React + jQuery, if you are starting a new project and you want to use React or jQuery, go ahead and choose one of them. but in case you are willing to use them together here is one of the articles I recommend before going into this direction.

jQuery与DOM交互,然后与之交互的唯一方法是确保组件已安装(显示在DOM中)。您可以使用componentDidMount()函数执行jQuery代码。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM