with regard to the asynchronous loading of webpack, react has two schemes,
a. React-router official website provides react-loadable
const LoadableComponent = Loadable({
loader: () => import("./Dashboard"),
loading: Loading,
})
b. The other provides the scheme of bundle-loader, which passes a bundleMurray loader _ lazyroomnamename _ name _ xxxxcards through the Bundle component. PageUnix _ Home.bundle
<Bundle load={loadComponent}>
...
</Bundle>
now, the first one is in the server rendering mode. When the node environment encounters import (), it will parse an error and cannot run. The second kind of Bundle uses a periodic function, UNSAFE_componentWillReceiveProps, which componentWillReceiveProps, has explicitly abandoned in the official react document. Is there any good solution?