[Tin tức] Speed Up Your React Apps With Code Splitting



FREE React Hooks Simplified Course:

Performance is something people always worry about, especially in React, but oftentimes the bundle size of an application is ignored when doing performance optimization. In this video I want to talk about how you can minimize the bundle size of your application by using code splitting to only download the code you need when you need it.

📚 Materials/References:

FREE React Hooks Simplified Course:

🌎 Find Me Here:

My Blog:
My Courses:
Patreon:
Twitter:
Discord:
GitHub:
CodePen:

⏱️ Timestamps:

00:00 – Introduction
00:25 – Setup
01:11 – What Is Code Splitting
02:39 – Code Splitting A Function
04:30 – Code Splitting Components
10:40 – Conditional Code Splitting
12:52 – Advanced Code Splitting Concepts

#React #WDS #CodeSplitting

24 bình luận về “[Tin tức] Speed Up Your React Apps With Code Splitting”

  1. Thank you, this is a great feature of React that I wasn't aware of.
    But when using TypeScript, passing the path to the component into your lazyLoad function doesn't work.
    But if I changed the lazyLoad function to accept a Promise, then pass into it the import('…') and then the namedExport, it works fine.

    Trả lời
  2. Who really wants to keep the user waiting for a component/content to be downloaded on click ?

    lazy loading is nice, but what would really help, is that after you load the necessary code (like HomePage), the lazy load should already start downloading async the rest of the code (like Store and About component). There was someone writing about a prefetch, that would really be useful. And if the user really navigates to that tab before it's downloaded async, only then they will see the Loading content ( animation, blur , whatever).

    Trả lời
  3. In the lazyLoad function, you don’t really need an else statement since you’re returning from the if. Without an else that would be an else regardless. I know some people prefer verbosity, but that’s actually confusing for some. Great video regardless, you’re a very good communicator!

    Trả lời

Viết một bình luận

bahis10bets.com betvole1.com casinomaxi-giris.com interbahis-giris1.com klasbahis1.com mobilbahisguncelgiris1.com piabetgiris1.com tipobettgiris.com tumbetgiris1.com betboro 1xbet giriş
bahis10bets.com betvole1.com casinomaxi-giris.com interbahis-giris1.com klasbahis1.com mobilbahisguncelgiris1.com piabetgiris1.com tipobettgiris.com tumbetgiris1.com betboro 1xbet giriş
antalya bayan escort
antalya bayan escort
antalya bayan escort