Simple Frontend Pagination | React

  Рет қаралды 476,396

Traversy Media

Traversy Media

Күн бұрын

In this video we will implement some custom pagination in React to get a certain number of fetched posts per page. We will be using the useState and useEffect hooks as well.
Code:
github.com/bradtraversy/simpl...
Sponsor: Freelancer Bundle (Use "brad25" for 25% off)
studywebdevelopment.com/freel...
💖 Become a Patron: Show support & get perks!
/ traversymedia
Website & Udemy Courses
www.traversymedia.com
Follow Traversy Media:
/ traversymedia
/ traversymedia
/ traversymedia

Пікірлер: 501
@michelezucca5819
@michelezucca5819 3 жыл бұрын
This is like the easiest and most simple way of paginating with React I've seen, much better than many other tutorials, hats off Brad you're always the man
@niklausmikaelson7332
@niklausmikaelson7332 11 ай бұрын
Wierd logic
@WorldXKIZOation
@WorldXKIZOation 2 жыл бұрын
Even in 2022, This Tutorial is still REALLY HELPFUL! Brad, your videos are such a HUGE help. THANK YOU!!
@oussemamiled4545
@oussemamiled4545 5 жыл бұрын
brad, i really don't have much time but when you post a video, like it's a must watch
@joejorgensen4509
@joejorgensen4509 2 жыл бұрын
This was possibly the best coding tutorial I've ever watched. I've been browsing google for hours just trying to find a decent tutorial and this was easily the best, super straight and to the point and great at explaining everything thats going on. Thank You!
@pavleta777
@pavleta777 2 жыл бұрын
Thank you, Brad! This tutorial was extremely useful! I was struggling with Material UI as beginner in React but you made building pagination to look so easy and clean! You thought me so much and I am very grateful to everything you do for us! Much love!
@RobertTodar
@RobertTodar 5 жыл бұрын
I love these short and simple lessons. I learned so much from this. Thank you!
@vince9593
@vince9593 2 жыл бұрын
Great video TM. You explain things so clearly with additional 'why we do this...' thrown in which gives context rather than just running through lines of code. Thanks !
@denniszenanywhere
@denniszenanywhere 5 жыл бұрын
Waking up with a new Brad video is the best. Thanks!
@farhan787
@farhan787 4 жыл бұрын
I can't thank you enough Brad, THAAAAAANNNNNNKKKKKKKKKKKSSSSSSSSSSS. a lot for this, I needed to implement it in one of my project on my new job and I'm not good at frontend but because of you, I was able to implement it ❤️❤️❤️❤️
@igoralves1925
@igoralves1925 3 жыл бұрын
i've searching about it for a few hours, I watched some video and read some blogs but your content was the only one that really helped me . Thanks !
@pam_prunelle1693
@pam_prunelle1693 3 жыл бұрын
With your tutos, I progressed, raised my level. A big thank-you Brad Traversy
@Gogetta94
@Gogetta94 4 жыл бұрын
I began taking his class in udemy about a month ago and I will take his courses ever since. great teacher of mine
@rez41
@rez41 5 жыл бұрын
This is great. I'm just getting to grips with React and hooks so this was perfect - I may even use pagination in my next project now. Thanks Brad
@narendrajoshi5460
@narendrajoshi5460 5 жыл бұрын
Thank you so much Brad. I was the guy who asked for this video..Thank you again for your work..you are my god and my inspiration
@AbdulelahAlJeffery
@AbdulelahAlJeffery 5 жыл бұрын
Traversy Media is the new Khan Academy for all things web .. excellent job Brad!
@romanpabianczyk8870
@romanpabianczyk8870 4 жыл бұрын
Bullshit. This code doesn't work for me.
@avthreek
@avthreek 4 жыл бұрын
@@romanpabianczyk8870 yeah, it only does for small amount of results. Not for thousands as Brad said in the end.
@yusuffakhreddin263
@yusuffakhreddin263 4 жыл бұрын
@@avthreek do you know why ?
@avthreek
@avthreek 4 жыл бұрын
@@yusuffakhreddin263 it is easier to fetch small amount of results when needed, rather than getting ALL the results and paginating them on the front end. For example my table have millions of rows and those rows have even more results attached in foreign tables. So loading them All is very expensive in a loading time and size and it is also unnecessary if user wants to get for example second page results and he will never reach third page. For such large data we paginate on the back end and retrieve pieces of data.
@yusuffakhreddin263
@yusuffakhreddin263 4 жыл бұрын
@@avthreek thank you
@diegogimbernat9253
@diegogimbernat9253 4 жыл бұрын
Dude, I'm putting an altar of you next to my desk, it's official. U are such a great teacher, thanks for all the great content.
@viktoriazubchenko5428
@viktoriazubchenko5428 3 жыл бұрын
wow! Thank you for your video, it was so helpful for me, not only as pagination tutorial, but also as a short lesson about how cool hooks are.
@aurimasrimkus4705
@aurimasrimkus4705 2 жыл бұрын
This is just amazing, so simple and works like a charm!
@shivanimathur1356
@shivanimathur1356 3 жыл бұрын
Thank you for making this so easy, I've been hitting my head on pagination for 3 days
@kimmotech
@kimmotech 2 жыл бұрын
Thanks a lot man, this really helped me understand how pagination works and now I have a full component I can always reuse
@tomasliendo3127
@tomasliendo3127 Жыл бұрын
Incredible tutorial :D , well explained step by step and not skipping anything, the truth has helped me a lot, thanks for the time! Greetings from Argentina.
@dzajakeks5539
@dzajakeks5539 7 ай бұрын
Okay this one really helped, thank you. Even after 4 years, your content is helpful
@HermesNautico
@HermesNautico 4 жыл бұрын
Thanks, Brad. This was my first intro to pagination. I tried another instructor but he uses 'lodash' for something you made so simple.
@Buffnerd_i
@Buffnerd_i 2 жыл бұрын
Kind of amazed by how easy this was, ty Brad!
@Mathis-zk7uq
@Mathis-zk7uq 5 жыл бұрын
Thank you very much :) Can't wait for the full stack video !!!
@IsaacAsante17
@IsaacAsante17 5 жыл бұрын
You actually listened to the request from your users. You really care about your viewers! 😃
@arifeljutviovska7672
@arifeljutviovska7672 3 жыл бұрын
Man I love you I was searching everywhere for this and it works thank you so much
@kaytiwari6018
@kaytiwari6018 2 жыл бұрын
Phenomenal video, that was crystal clear. Thanks for posting the code too, I'm gonna practice with the Json file. I have a react technical interview coming up so thanks so much for this.
@Colstonewall
@Colstonewall 5 жыл бұрын
Just what I needed and wanted. Thank you Brad!
@madeinbalcony7237
@madeinbalcony7237 4 жыл бұрын
this is worth not skipping ads. as always, thanks brad :D
@roman_mf
@roman_mf Жыл бұрын
Thank you so much Brad! Exactly what I was looking for. This approach was super useful for my own project.
@rodolfoleal7295
@rodolfoleal7295 4 жыл бұрын
Just used it on my project. Thank you very much Brad!
@julielesage960
@julielesage960 4 жыл бұрын
Perfect clear and simple, up to date code, and I love your voice ! many thanks
@ericmomoh7927
@ericmomoh7927 Жыл бұрын
Finally I saw i pagination tutorials that doesn't use a paginated library. Perfect to learn how that really works with actual code.
@Hashmimohammed
@Hashmimohammed 5 жыл бұрын
Transforming many lives with your work. You Rock
@hn031
@hn031 4 жыл бұрын
Thanks man. I'm at point in a project where I had to chose which pagination to use. The data coming from the backend is already paginated, but I don't like that a new request had to be sent to the backend each time a new page is requested; I consider this too much load. Then I didn't want to use a package to paginate my data. What I'm left with is to learn how to do the pagination; you just helped out. Thanks a lot . You're saving tons of life and jobs.
@TheNikola2910
@TheNikola2910 4 жыл бұрын
This helped me get a job! Thank you so much Brad!
@shauntonesify
@shauntonesify 4 жыл бұрын
I love you Brad, you saved my life again on another project.
@aaronkagandev
@aaronkagandev Жыл бұрын
Dude you're a G. This is by far the cleanest way i've seen so far
@BadtzCarol
@BadtzCarol 3 жыл бұрын
Thank you so much for the awesome tutorial! Now I have a pagination component that can use in every project
@karma_yogi_42
@karma_yogi_42 3 жыл бұрын
what a life saver! thanks needed this for a interview assignment!
@patineira1323
@patineira1323 4 жыл бұрын
Simple but solves the need it. Amazing your explanation, thank you so much!
@kevinurielfonseca
@kevinurielfonseca 5 жыл бұрын
Exactly what I was looking for, thanks!
@edwardhui6274
@edwardhui6274 4 жыл бұрын
Straight on point! Great tutorial for pagination on front-end side!
@markkatona4501
@markkatona4501 Жыл бұрын
this video was really helpful, I saw many of them about pagination, but this is a quality content, thank you so much :D
@nakimapi
@nakimapi 3 жыл бұрын
What a great video! Exactly what I was looking for!
@coolpriyanks
@coolpriyanks 3 жыл бұрын
simple and to the point video. Thank you for making it!
@parasarora5869
@parasarora5869 5 жыл бұрын
loved it !!...wanted to learn this for a long time 😄 thank uuu
@yutamatsumoto7234
@yutamatsumoto7234 3 жыл бұрын
just what I needed the most. thank you for the excellent job!
@francisfernando4605
@francisfernando4605 2 жыл бұрын
Very easy to understand. Great tutorials. Thank you so much
@kingofgods898
@kingofgods898 3 жыл бұрын
Exactly what I was looking for, thank you!
@manasiroy9510
@manasiroy9510 4 жыл бұрын
Who dislikes this amazing video? This is very very helpful. I just love it.
@emreaka3965
@emreaka3965 3 жыл бұрын
They should comment that why did not they dislike the video for. ^^
@randolphperkins6584
@randolphperkins6584 Жыл бұрын
Great video! I completed this tutorial, and I am looking forward to watching a pagination lesson using the back end. Thank you!
@GabrielRamirez-rm7qh
@GabrielRamirez-rm7qh Жыл бұрын
PSA: If using this pagination component inside of a route ,the anchor tag will navigate you away from your route and throw an error. The "!# href is a hack to trigger javascript while avoiding side effects. It can work in some cases but is not semantically correct . The fix for this, and semantically correct option would be to simply remove the href attribute and use a button tag instead of an anchor tag.
@luizadinizmendesmonteirolu2515
@luizadinizmendesmonteirolu2515 Жыл бұрын
you saved my fucking life i was having a fucking meltdown
@dannonabiola8709
@dannonabiola8709 Жыл бұрын
Thanks
@sir0co
@sir0co Жыл бұрын
Nice tip bro, helped me out with that one appreciate it!
@karryljadeobidos343
@karryljadeobidos343 Жыл бұрын
You can also try href="#!" but as you've said, it's still not semantically correct.
@abc911ish
@abc911ish 9 ай бұрын
U U a a real one thanks
@josuedanielflores2008
@josuedanielflores2008 4 жыл бұрын
So useful, thanks for creating this kind of content!
@gsalazarmusic
@gsalazarmusic 2 жыл бұрын
Dude!!! Thank you so much! My nightmares doing paginations are over!!!
@adrianzawadzki1900
@adrianzawadzki1900 5 жыл бұрын
Great guide, solved the problem in my project, thanks!
@javadmohammadi3943
@javadmohammadi3943 2 жыл бұрын
oh thank God finally I find the best video about pagination
@MrMiguelapb35
@MrMiguelapb35 4 жыл бұрын
straightforward and functional, perfect
@TheAditya64
@TheAditya64 5 жыл бұрын
Great work Brad.... As always loved the work.
@ridl27
@ridl27 5 жыл бұрын
Thank you Brad for another one useful video. Waiting for full-stack pagination! =)
@JustAnotherGuyBloger
@JustAnotherGuyBloger 3 жыл бұрын
Greetings from brazil! All that i needed, thanks!
@Kagmajn
@Kagmajn 5 жыл бұрын
wow, you just solved my problem for my current project, well i think i have to check the full tutorial for the react
@matthiasmatanda4295
@matthiasmatanda4295 Ай бұрын
I watched this in 2024, still a valid tutorial, thanks God for Brand Traversy Media
@dermotsheerin5672
@dermotsheerin5672 4 жыл бұрын
Thanks a mill Brad that was excellent.....as always you explain all steps
@natefr0st239
@natefr0st239 5 жыл бұрын
I liked the video before I even watch it, because I know it's gonna be a good one as any other in that channel.
@carlosg8716
@carlosg8716 4 жыл бұрын
Great explanation. Thanks for all your work.
@sunnydevtale3021
@sunnydevtale3021 2 жыл бұрын
Thank you, Brad! This tutorial was Awsome.!
@jasonlee7227
@jasonlee7227 2 жыл бұрын
Thank you soo much, Brad! I really needed this. God bless you.
@eugenemusebe4963
@eugenemusebe4963 5 жыл бұрын
I really needed this. Thanks brad
@wingsaber629
@wingsaber629 5 жыл бұрын
Thanks Brad! SUPER USEFUL. For the full-stack, put pagination it in your MERN stack course! I will be doing that. Thanks.
@sudharshaniyengar1587
@sudharshaniyengar1587 4 жыл бұрын
Thanks Brad .. Love such cut short videos
@amirsohail2630
@amirsohail2630 4 жыл бұрын
It was very helpful. Thank you Brad!
@tarellmorris4621
@tarellmorris4621 3 жыл бұрын
This saved my life. Thank you!
@Szchmausser
@Szchmausser 3 жыл бұрын
You are a BOSS! Thank you, very concise and helpful.
@etekumoses3320
@etekumoses3320 Жыл бұрын
This is an awesome video you saved me countless hours..
@tatosalusu
@tatosalusu 2 жыл бұрын
I love you so much, this one is so simple for newbie.
@ashokk9289
@ashokk9289 2 жыл бұрын
This is the Best and Easiest Pagination I've ever seen. Thank You Soo Much for this Wonderful video Brad. I'm Your new Subscriber
@devendradeo5833
@devendradeo5833 2 жыл бұрын
Thanks buddy for the example, it is very simple and correctly explained.
@yuliiafedorenko_
@yuliiafedorenko_ 3 жыл бұрын
Thanks a lot for such kind of content. It really helps!!
@laurechapert8435
@laurechapert8435 2 жыл бұрын
Extremlely useful tutorial! thanks!!!
@GustavoPozo
@GustavoPozo 6 ай бұрын
very good way of pagination, it helped me a lot to set up my pagination system
@yaoxiao6897
@yaoxiao6897 Жыл бұрын
Awesome, clear and simple to follow.
@MiguelRochaOporto
@MiguelRochaOporto 4 жыл бұрын
Excelent! Thank you very much. Now I go implement Search in table!
@aniketa.raikwar1983
@aniketa.raikwar1983 2 жыл бұрын
Excellent Video, Thank you so much, without this tutorial i can able to implement pagination.
@siddhantganesh
@siddhantganesh 2 жыл бұрын
Thanks for your effort . I really appreciate what u r doing ❤️
@manuelcaceres8977
@manuelcaceres8977 2 жыл бұрын
Excellent!! Thank you so much. I'm a subscriber now
@brucelee7782
@brucelee7782 2 жыл бұрын
omg this dude saved me life!!
@rebelmachine88
@rebelmachine88 5 жыл бұрын
Thank you for this one, Brad!
@MistaT44
@MistaT44 5 жыл бұрын
Excellent video as always Brad! cheers
@orkoren2006
@orkoren2006 2 жыл бұрын
That's an excellent tutorial thank you for that!
@maxwilsonpereira
@maxwilsonpereira 3 жыл бұрын
Thank you so much! Already implemented on my project! :-D
@kiransurage
@kiransurage 5 жыл бұрын
Anyone else hits the Like button as they start watching, bcuz its Brad, and u just know it's going to be awesome?
@asielvalle96
@asielvalle96 9 ай бұрын
Thank you for sharing this information. I appreciate it.
@ShubhamRathod-jg9gt
@ShubhamRathod-jg9gt 5 жыл бұрын
Keep post more on React.js related topics (: and congratulations for 777K subscribers
@jesuscortessantacruz5757
@jesuscortessantacruz5757 3 жыл бұрын
Amazing, still works today thank you
@DylanBradRamsey
@DylanBradRamsey Жыл бұрын
Just the best Brad 👏thank you!
@snehilgajera7057
@snehilgajera7057 3 жыл бұрын
Thanks, I was looking for this kind of solution.
@mekabeka23
@mekabeka23 4 жыл бұрын
This was the simplest tutorial I've seen all day on pagination. Thank you. I understood 100% all while the simple way to use hooks. You're awesome.
@Maratreason
@Maratreason 3 жыл бұрын
so do I :) Thank you man!
@ridz4912
@ridz4912 3 жыл бұрын
I agree 100%
@romimaximus
@romimaximus 4 жыл бұрын
Brad you are the Man !! Thank you so much !!
Build & Deploy A React JS Text Generator App
35:20
Traversy Media
Рет қаралды 59 М.
All useEffect Mistakes Every Junior React Developer Makes
22:23
3M❤️ #thankyou #shorts
00:16
ウエスP -Mr Uekusa- Wes-P
Рет қаралды 14 МЛН
Incredible magic 🤯✨
00:53
America's Got Talent
Рет қаралды 64 МЛН
Самое Романтичное Видео ❤️
00:16
Глеб Рандалайнен
Рет қаралды 6 МЛН
The Importance of Specialization in Coding
7:13
Traversy Media
Рет қаралды 194 М.
Create A Paginated API With Node.js - Complete Tutorial
23:21
Web Dev Simplified
Рет қаралды 192 М.
Пагинация в React-приложении с Material-UI
26:48
Михаил Непомнящий
Рет қаралды 24 М.
ReactJS Pagination Tutorial using React Hooks
22:18
PedroTech
Рет қаралды 106 М.
20 Essential VS Code Extensions In 2024
14:26
Traversy Media
Рет қаралды 143 М.
Как сделать пагинацию на React.js ?  [React Pagination]
20:01
Давай Попробуем: JavaScript
Рет қаралды 34 М.
Should I use Vite instead of CRA in 2024?
13:26
AI Bruise
Рет қаралды 681
Introducing React Hooks
20:50
Traversy Media
Рет қаралды 345 М.
Web Development In 2024 - A Practical Guide
2:43:32
Traversy Media
Рет қаралды 370 М.
OZON РАЗБИЛИ 3 КОМПЬЮТЕРА
0:57
Кинг Комп Shorts
Рет қаралды 1,5 МЛН
Игровой Комп с Авито за 4500р
1:00
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 2,1 МЛН
Красиво, но телефон жаль
0:32
Бесполезные Новости
Рет қаралды 303 М.
iPhone 15 Pro в реальной жизни
24:07
HUDAKOV
Рет қаралды 174 М.