简体   繁体   中英

What DOM event updates a ReactJS app and how can you force update with plain Javascript

I am very new to ReactJS and was wondering the following: On what DOM event, if there even is a standard, does react update the contents of the root container or app container? Is there a way to force this event via a plain Javascript event dispatch? An example of website would be WhatsApp Web. It loads a spinner loader and some event loads to fill out the rest of the elements once loaded.

you can basically call ReactDom.render() on root element to rerender everything, its very fast as pointed out here by Dan himself

https://twitter.com/dan_abramov/status/691301224541503488?lang=en

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