DEV Community

Cover image for Code splitting in React

Code splitting in React

Sagar on October 07, 2018

Hi, I'm Sagar working as a senior software engineer. I love to write articles which will help developers to understand the magic of JavaScript. If ...
Collapse
 
yosbelms profile image
Yosbel Marín

@sagar , nice article. Also notice there is some libraries out there focused in to improve user interaction by taking advantage of code splitting, and lazy loading based on user visibility, example:

Collapse
 
sagar profile image
Sagar

Thanks @yosbel for links.

Collapse
 
developerruhul profile image
Developer Ruhul • Edited

enough talk.. now let's face real problem (: ...

I am making an instagram clone and I am facing this problem

enter image description here

"How to make react router replace component only after the matched route asynchronously loaded..?"

I created a post here explaining the problem dev.to/iamruhul/how-to-make-react-...

Anyone know how to solve this problem??

Collapse
 
sagarkanase03 profile image
Sagar Krishnat kanase

great article.
really helpful for me.
you are great programmer bro.

Collapse
 
sagar profile image
Sagar

Thanks for your feedback

Collapse
 
sagar profile image
Sagar • Edited

t completely agreed with your opinion. Thanks for feedback.

Collapse
 
jeyj0 profile image
Jannis Jorre

Awesome article! Just want to note that the import() syntax is not a function. But that's nit-picking... :) Awesomely done and compiled!

Collapse
 
sagar profile image
Sagar

Hi Jannis, you're right it's not like traditional function, but simplicity, I introduce import() as a functional form for better understanding.

Thanks for your valuable feedback.