Can React.js Render 1,000,000 Elements?

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 พ.ย. 2024

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

  • @mahdiwebdevelopment2338
    @mahdiwebdevelopment2338 ปีที่แล้ว +5

    That browser limitation of max scollHeight

  • @rinatvaliullov3247
    @rinatvaliullov3247 2 ปีที่แล้ว +6

    I think you can create multiple columns and see how many components fit that way.

  • @maxteer2800
    @maxteer2800 ปีที่แล้ว

    Wow. I thought for sure you couldn't hit 1M. Nice stuff!

  • @TimePass79020
    @TimePass79020 วันที่ผ่านมา

    Great Stuff. Thanks 🤩

  • @yc-codes
    @yc-codes 2 ปีที่แล้ว +1

    Wow, didn't know that before, thanks dude

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

    nice explanation, i'm just wondering how it's work and your explanation really nail my brain

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

    I'm stuck on a problem that I'm trying to solve with the window virtualization but challenge is not just a list but a table. How to match a table header with a virtual list. Any idea?

  • @rickcode22
    @rickcode22 ปีที่แล้ว +1

    This generates an extra scroll in the page, one for the main page and another one for this window virtualized :( Is there any way that we can avoid that?

  • @nullbeyondo
    @nullbeyondo ปีที่แล้ว +1

    Can we put like a "waiting/loading screen" instead of the blank flickering in the library or would we have to implement it ourselves?

  • @PrevalentAA
    @PrevalentAA 2 ปีที่แล้ว

    Great and informative video, thanks! Really appreciate it

  • @damilareemichaell5245
    @damilareemichaell5245 ปีที่แล้ว +2

    So it's basically like intersection observer under the hood, yes?

    • @blessdarah1256
      @blessdarah1256 ปีที่แล้ว

      I guess so.

    • @TheBswan
      @TheBswan ปีที่แล้ว +2

      I think this actually calculates what to render based on scroll position, and fills in the top and bottom with a single empty div with variable height. 1 million intersection observers would cause performance issues during rapid scrolling

  • @dat0564
    @dat0564 ปีที่แล้ว

    May I ask which vscode theme you are currently using?

  • @boomshakalaka656
    @boomshakalaka656 ปีที่แล้ว

    This doesn't affect server rendered components right?

  • @AnastasiiaKolomiitseva
    @AnastasiiaKolomiitseva ปีที่แล้ว +1

    1:53 Why localhost should render pretty fast?

    • @apostol1966
      @apostol1966 ปีที่แล้ว +7

      Because u dont do any request over the internet

    • @nastusya1134
      @nastusya1134 ปีที่แล้ว

      @@apostol1966 Thank you!

  • @alext5497
    @alext5497 2 ปีที่แล้ว +1

    oh man, slow news day

  • @zerodegreecoder
    @zerodegreecoder ปีที่แล้ว +1

    It reminds me recycler view of anroid.

    • @bangonkali
      @bangonkali ปีที่แล้ว

      Yeah. All approaches for mobile list views during early days of mobile phones almost always relies on some type of virtual scroll/recycler view and that's because the early mobile phones had very little RAM. So there was no way to fit entire contacts for example on ram for rendering as list. Recycler view allowed reading from disk every time list is scrolled and only saving a constant amount of visible rows on screen in the ram. I would say as well all list views with unbounded length should be made from this manner as sooner or later that list is gonna grow more than the ram or exceed reasonable rendering time.

    • @zerodegreecoder
      @zerodegreecoder ปีที่แล้ว

      @@bangonkali Thanks man

  • @mahdiwebdevelopment2338
    @mahdiwebdevelopment2338 ปีที่แล้ว

    Please make a video on how to convert react web app to android apk easiest way💯😏