Efficiently Render 100,000 Rows in React

  Рет қаралды 15,218

Cosden Solutions

Cosden Solutions

Күн бұрын

🚀 Project React → cosden.solutions/project-react
Repo → github.com/cosdensolutions/co...
Join The Discord! → discord.cosden.solutions
VSCode Theme | Font → Material Theme Darker | Menlo, Monaco "monospace"
In this video I will show you how to efficiently render 100,000 rows in React. We are going to be doing this with the react-virtuoso library, which applies the concept of virtualization to React. Virtualization means only rendering a subset of elements instead of all of them. In our case, we will only render the elements currently visible in the viewport. This will allow us to efficiently render 100,000 rows in React.

Пікірлер: 44
@ivandamyanov
@ivandamyanov 2 ай бұрын
Thanks for the video I'm happy to know about this package for my future use cases and I think you explained all the basics a beginner might need, in an easy to understand manner.
@Ray-ko6cw
@Ray-ko6cw 3 күн бұрын
Thank you so much, I've been looking for this
@zerdnelemo
@zerdnelemo 2 ай бұрын
I used react-window in the past. Virtuoso is really a big improvement.
@harag9
@harag9 2 ай бұрын
Great video, thanks for that.
@abhinavkumarsingh_0365
@abhinavkumarsingh_0365 Ай бұрын
Was looking for exactly this
@incarnateTheGreat
@incarnateTheGreat Ай бұрын
Very cool. Thanks for sharing!
@mocastello9253
@mocastello9253 Ай бұрын
great video! thank you so much!
@mohamedsalimbensalem6118
@mohamedsalimbensalem6118 2 ай бұрын
thanks for the video ^^
@bsw4245
@bsw4245 Ай бұрын
absolute goldmine
@kevyyar
@kevyyar 2 ай бұрын
Hello Cosden! I've been eagerly following your React course updates, and I must say, it’s precisely what I've been looking for to advance my skills. I am currently on the job hunt, either in Argentina or remotely. Unfortunately, my current financial situation doesn't allow me to enroll in your course at its full price. I am deeply committed to learning and growing in this field, and I wonder if there might be any scholarships, discounts, or alternative options available that could assist me in accessing this invaluable resource? Thank you for understanding my brother.
@ahmadbenchakhtir5787
@ahmadbenchakhtir5787 2 ай бұрын
First Thank u, second actually I wish that we could do it without any library... sometimes i hate the idea that most of the things we use a library for.
@matrioxplayz1607
@matrioxplayz1607 Ай бұрын
you probably could, however it would take a lot of effort and you would end up making what is essentially a library
@ahmadbenchakhtir5787
@ahmadbenchakhtir5787 Ай бұрын
@@matrioxplayz1607 Agree Agree, on one side you're right. but this -Building ur own- will push your skills and your logical thinking add to this usually u will not need to all the functionality of the library. I don't say that the library approach is bad... It's a trade off with personal preference. Thank u.
@shivamjainn
@shivamjainn Ай бұрын
​@@ahmadbenchakhtir5787 ofcourse it will push your skill , but reinventing the wheel is just pure insanity . You could read the code from library instead and also contribute. As for skills , i agree with you point. But doing this isn't helping u anyways so why try
@andy_lamax
@andy_lamax Ай бұрын
It's not about reinventing the wheel, its about understanding how the library works. Just using a library and not knowing its internals tends to not put a boost on one's skillset
@geforcesong
@geforcesong Ай бұрын
what if the user component has dynamic height, it could be different height in different cases, does Virtuoso handle this?
@Presidentum
@Presidentum 2 ай бұрын
Very interesting video!!! It seems like an alternative to tanstack query, no? What are the pros and cons of it against TQ?
@cosdensolutions
@cosdensolutions 2 ай бұрын
They are different things! This is a rendering optimization, RQ is a data fetching lib!
@HenryBabbage
@HenryBabbage Ай бұрын
I think OP is referring to Tanstack Virtual, which handles list virtualization. Also curious how these two libs compare@@cosdensolutions
@hassanad94
@hassanad94 Ай бұрын
I have a question. Currently you set a fixed hight, what if dont want fix height. What if i want to set 100%? So that i can use anywhere. (I dont want to set it as a prop) Pls can you help?
@sounakmandal
@sounakmandal Ай бұрын
In a large table, generally we have pagination in the table itself where we anyways display a single page of fixed size and fetch the next page when the user manually moves to the next page. In this case, is there any advantage to this approach?
@cosdensolutions
@cosdensolutions Ай бұрын
it all depends on how you want to do it. As long as you load paginated data and not all at once, you are good!
@sarthakagarwal014
@sarthakagarwal014 2 ай бұрын
Thanks for the video, but here one question arises is that what if we have that large amount of image along with text. Will it work or do we need to choose other way?
@cosdensolutions
@cosdensolutions 2 ай бұрын
It would work the same!
@moghariyarahul5723
@moghariyarahul5723 2 ай бұрын
Hey bro, i am building a chat app and it has aa lot of dynamic content so how can i use it?
@darkshadowgks
@darkshadowgks 21 күн бұрын
normally with the table, people will have to able to search on it, can this do so? can you show to us how search (example search particular name) works on this?
@codernelly34
@codernelly34 2 ай бұрын
Please Sir am just from watching your video on react Context api but i have a problem i have created a context api where the context value is set in the login page and the value is displayed in the home page it works fine but when the home page is refresh the value of the context became undefined why please help am a beginner
@cslearn3044
@cslearn3044 2 ай бұрын
i think you should reconsider programming lmao if you dont know how to google or use chatgpt
@immipixediter210
@immipixediter210 2 ай бұрын
u can use 'emittor' package npm i emittor
@zerdnelemo
@zerdnelemo 2 ай бұрын
Context is in-memory storage. When you refresh your page in the browser, everything is reset. If you want to persist data between refresh, you should store it somewhere, like local storage, per instance.
@victormanuelalonsoramirez8358
@victormanuelalonsoramirez8358 2 ай бұрын
If You want to persit data you need to use localstorage
@VidoviDroga
@VidoviDroga Ай бұрын
Is it ok to use this with nextjs 14?
@user-tq6kn5bv8h
@user-tq6kn5bv8h 2 ай бұрын
Like
@FaintArt
@FaintArt Ай бұрын
observer api? pagination?
@user-jm1qz4dj9l
@user-jm1qz4dj9l 2 ай бұрын
do you use vim ou vscode?
@cosdensolutions
@cosdensolutions 2 ай бұрын
Vscode with vim bindings
@IAmTerryClark
@IAmTerryClark Ай бұрын
any reason not to use tanstack virtual?
@cosdensolutions
@cosdensolutions Ай бұрын
there's not just one way to do things ☺️
@ricohumme4328
@ricohumme4328 2 ай бұрын
So how does this library compare to the Flatlist implementation?
@cosdensolutions
@cosdensolutions 2 ай бұрын
its very similar actually. FlatList implements virtualization as well
@immipixediter210
@immipixediter210 2 ай бұрын
npm i emittor
@nickwoodward819
@nickwoodward819 2 ай бұрын
But *why* 😄
Why Did They Do This?! (Code Review)
18:48
Cosden Solutions
Рет қаралды 14 М.
You Are Using useEffect Wrong
14:40
Cosden Solutions
Рет қаралды 30 М.
格斗裁判暴力执法!#fighting #shorts
00:15
武林之巅
Рет қаралды 77 МЛН
CAN YOU HELP ME? (ROAD TO 100 MLN!) #shorts
00:26
PANDA BOI
Рет қаралды 36 МЛН
Glow Stick Secret 😱 #shorts
00:37
Mr DegrEE
Рет қаралды 143 МЛН
React Junior Developer Interview (Questions & Challenge)
1:06:19
Cosden Solutions
Рет қаралды 102 М.
We need to talk about this benchmark
42:25
Theo - t3․gg
Рет қаралды 63 М.
Can React.js Render 1,000,000 Elements?
11:38
CoderOne
Рет қаралды 32 М.
Updates Like These Make Tailwind So Fun
8:00
Josh tried coding
Рет қаралды 69 М.
Learn React Hooks: useCallback - Simply Explained!
17:15
Cosden Solutions
Рет қаралды 69 М.
The problems with viewport units
13:23
Kevin Powell
Рет қаралды 351 М.
Things you didn't know about re-rendering in React
4:40
Code Sketched
Рет қаралды 21 М.
10 common mistakes with the Next.js App Router
20:37
Vercel
Рет қаралды 173 М.
How I power my React app with IndexedDB
7:01
LifeLoveAndMonads
Рет қаралды 12 М.
格斗裁判暴力执法!#fighting #shorts
00:15
武林之巅
Рет қаралды 77 МЛН