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

Поделиться
HTML-код
  • Опубликовано: 12 янв 2025

Комментарии • 24

  • @awekeningbro1207
    @awekeningbro1207 9 месяцев назад +5

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

    • @raj_talks_tech
      @raj_talks_tech  9 месяцев назад

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

  • @vishaldas1665
    @vishaldas1665 2 месяца назад +1

    Awesome explanation!, I am a backend dev and I got it thanks a lot.

  • @Malhama-kt2gv
    @Malhama-kt2gv 10 месяцев назад +2

    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

  • @HideBuz
    @HideBuz 6 месяцев назад +3

    Awesome content, that's quality teaching! Instant sub

  • @Mi2ey
    @Mi2ey 8 месяцев назад +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.

  • @PoojaGera-l2r
    @PoojaGera-l2r 5 месяцев назад +1

    love how there was math involved haha, looking forward to more content from you!

  • @NeelanshMathur
    @NeelanshMathur 9 месяцев назад +1

    This is good, thanks!

  • @s.hariharanreddy5439
    @s.hariharanreddy5439 8 месяцев назад +2

    thanks a lot man, you are a gem!!

  • @SeeingHumanBoxes
    @SeeingHumanBoxes 24 дня назад

    Hi. I created an infinity grid with dynamic width about 2 years ago, similar to the one you showed in your video. However, I couldn't solve one issue: fast scrolling. If you have 50k to 1M elements and render all of them, scrolling quickly from top to bottom causes layout shifts and FPS drops. I tried using debouncing and rendering delays, but it's not easy to implement. I rendered cards - picture + text. Can you give me some advice?

  • @RoBBiEoftheAether
    @RoBBiEoftheAether 9 месяцев назад +2

    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  9 месяцев назад +1

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

  • @cantseeme101
    @cantseeme101 8 месяцев назад +1

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

    • @raj_talks_tech
      @raj_talks_tech  8 месяцев назад +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

  • @swastikpatro6436
    @swastikpatro6436 10 месяцев назад +1

    Good stuff ❤

  • @prawarmundra4931
    @prawarmundra4931 8 месяцев назад

    how would we handle if itemheight is different for list elements

  • @ampersandrue-24k
    @ampersandrue-24k 8 месяцев назад +1

    What's the wallpaper on the screen behind you?

  • @techdiyer5290
    @techdiyer5290 10 месяцев назад +3

    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  10 месяцев назад

      Oh sorry might be wrong tag will remove it ! 😅

  • @omkarbandal6606
    @omkarbandal6606 3 месяца назад

    Can we overcome this with pagination?

    • @raj_talks_tech
      @raj_talks_tech  3 месяца назад

      if you have an url based pagination with page numbers, but if you have deep list then u need it

  • @dashorts6597
    @dashorts6597 7 месяцев назад +1

    Let's just use a library for now

  • @saqomelqon1618
    @saqomelqon1618 2 месяца назад

    Not tan-stack? Surprised it’s not one of the recommendations