DEV Community

Discussion on: How I used React-Loadable to more than halve my React app's load time

Collapse
 
owenmelbz profile image
Owen Melbourne

This is very handy for people! The concept of code splitting and lazy loaded components is πŸ‘ŒπŸ‘ŒπŸ‘Œ

However react supports lazy loading out of the box and doesn’t need a third party packages to do this, so my advice would be to stick to the official documented route if possible.

reactjs.org/docs/code-splitting.html

Collapse
 
thekashey profile image
Anton Korzunov

However Lazy covers only component level splitting.
"Other libraries" have already implemented library-level splitting in form of renderProps or resource level splitting in form of hooks, which let you reduce you bundle size even more.