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 - วิทยาศาสตร์และเทคโนโลยี
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.
thanks a lot man, you are a gem!!
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
this was great deduction. I'd love to see the implementation for dynamic heights!
Dynamic heights can be implemented easy but the performance part is a huge challenge
This is good, thanks!
Good stuff ❤
how would we handle if itemheight is different for list elements
Hey man, can you please explain how the the translateY optimization works? I did not understand it.
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
How would I go about replacing the generated array with my own? I have a string array that I’m trying to virtualize
I think if you use React-virtuoso you can render your own component instead of string
What's the wallpaper on the screen behind you?
youtube videos for "cafe music"
Let's just use a library for now
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.
Oh sorry might be wrong tag will remove it ! 😅