Anonymous ID: 5a9d97 Feb. 7, 2019, 4:57 p.m. No.5072133   ๐Ÿ—„๏ธ.is ๐Ÿ”—kun   >>2177

>>5072035

 

According to this, yes.

 

>The React team are working on extracting all DOM-related stuff into a separate library called ReactDOM. 0.14 is the first release in which the libraries are split.

 

>But they don't want to remove the DOM methods from the core React library during this release. Instead, they want to deprecate them โ€” so, if a developer upgrades React without knowing about this change, their applications won't crash; instead, they'll just emit tons of warnings to the console, which the developer will see and hopefully fix before the next version of React.

 

>In order to support this temporary functionality, react.js needs to include a full copy of ReactDOM in the 0.14 release. So, since react.js already contains ReactDOM, it would be redundant for react-dom.js to include a second copy.

 

>Instead, the React core exposes its copy of ReactDOM in a secret, obscure way (with this long property name), and react-dom.js just reads that property, renames it to ReactDOM, and exposes it to your application :)

 

>Someday, the deprecated DOM methods will be removed from react.js. Once that happens, ReactDOM will move from react.js to react-dom.js, hooray!