I want to split my react code with server side rendering. To do that I have two options.
- loadable-components
- react-loadable
loadable-components
React documentation suggested to use loadable-components for server rendered apps. But it has very few NPM weekly downloads.
react-loadable
NPM weekly downloads of this package is very high compared to the previous one but according to loadable-components documentation this package is not maintained any more.
react-loadable was the recommended way for React code splitting for a long time. However, today it is not maintained any more and it is not compatible with Webpack v4+ and Babel v7+. Documentation Link
Please guild me with proper package.