1

Packages \ react - dom \ SRC \ events \ ReactDOMEventListener js findRootContainerNode functionCopy the code

SPA returns the same #root DOM, but every time it is called it will be traversed, so React said it would be better to have a cache, but React thought it would require an observer to monitor all DOM changes, so it didn’t

Why bother with the observer? How does the root DOM change?