Render-dom render: direct module import

Is there a way to do a direct import of a module for the ReactDOM render method to minimize package size?

For example, this direct module import works for findDOMNode :

 import findDOMNode from 'react-dom/lib/findDOMNode'; 

... but it is not:

 import { render } from 'react-dom/lib/ReactMount'; 
+5
source share

Source: https://habr.com/ru/post/1265571/


All Articles