Let's Build a VIRTUALIZED LIST from Scratch in React.js

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 มิ.ย. 2024
  • A beginner friendly deep-dive into building a virtualized-lists from scratch and the algorithm behind them.
    #reactjs #virtualization #frontenddevelopment
    Code: github.com/rajeshdavidbabu/vi...
    Further learnings: dev.to/adamklein/build-your-o...
    React-Virtuoso: virtuoso.dev/
    Gitposter-app: www.gitposter.dev
    ✨ My Links -
    Discord: / discord
    X.com: / rajeshdavidbabu
    Want a shoutout?? : www.passionfroot.me/rajesh-babu
    Github: github.com/rajeshdavidbabu
    Timecodes:
    0:00 - Intro
    00:53 - Chapters
    01:30 - Problems with really long-lists
    03:13 - Virtualised List Architecture
    05:21 - Building a virtualised list
    08:23 - Optimising the algorithm
    10:40 - My Verdict
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 17

  • @Mi2ey
    @Mi2ey หลายเดือนก่อน +1

    Excellent video. Would definitely love to see another one that touches upon how introducing dynamic heights impacts this solution. My only suggestion is for more advanced topics it would be great to hear your thought process in analyzing the problems to solve and how you navigate to a solution. But I really enjoyed this video.

  • @s.hariharanreddy5439
    @s.hariharanreddy5439 หลายเดือนก่อน +2

    thanks a lot man, you are a gem!!

  • @Malhama-kt2gv
    @Malhama-kt2gv 3 หลายเดือนก่อน +1

    I was searching for this video for a while , glad I found this video today
    Kindly cover more react and ai for web engineer stuff

  • @awekeningbro1207
    @awekeningbro1207 2 หลายเดือนก่อน +3

    this was great deduction. I'd love to see the implementation for dynamic heights!

    • @raj_talks_tech
      @raj_talks_tech  2 หลายเดือนก่อน

      Dynamic heights can be implemented easy but the performance part is a huge challenge

  • @NeelanshMathur
    @NeelanshMathur 2 หลายเดือนก่อน +1

    This is good, thanks!

  • @swastikpatro6436
    @swastikpatro6436 3 หลายเดือนก่อน +1

    Good stuff ❤

  • @prawarmundra4931
    @prawarmundra4931 หลายเดือนก่อน

    how would we handle if itemheight is different for list elements

  • @cantseeme101
    @cantseeme101 หลายเดือนก่อน +1

    Hey man, can you please explain how the the translateY optimization works? I did not understand it.

    • @raj_talks_tech
      @raj_talks_tech  หลายเดือนก่อน +1

      Basically there are two possible optimizations here:
      1) Instead of applying position absolute to all the list-items seperately, you only apply translateY to the parent block.
      2) translateY uses GPU acceleration if available

  • @erikrobinson9999
    @erikrobinson9999 2 หลายเดือนก่อน +1

    How would I go about replacing the generated array with my own? I have a string array that I’m trying to virtualize

    • @raj_talks_tech
      @raj_talks_tech  2 หลายเดือนก่อน +1

      I think if you use React-virtuoso you can render your own component instead of string

  • @aespidol
    @aespidol หลายเดือนก่อน +1

    What's the wallpaper on the screen behind you?

    • @raj_talks_tech
      @raj_talks_tech  หลายเดือนก่อน +1

      youtube videos for "cafe music"

  • @dashorts6597
    @dashorts6597 25 วันที่ผ่านมา +1

    Let's just use a library for now

  • @techdiyer5290
    @techdiyer5290 3 หลายเดือนก่อน +2

    I'm so sorry, but I stumbled upon this video and only understood rendering and algorithms. I just looked up that react is a JavaScript library for front end development for ui type stuff. I don't even know why this was in my watch list.

    • @raj_talks_tech
      @raj_talks_tech  3 หลายเดือนก่อน

      Oh sorry might be wrong tag will remove it ! 😅