How to Build a Custom Pagination Component in React? Pagination in React JS

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ก.ย. 2024
  • #paginationInReact #reactjs
    Learn How to Build a Custom Pagination Component in React? Simple Guide to React Pagination. Pagination in React JS is a function of apps that allows them to show data on a series of pages. The information can be seen by going from one page to the next rather than viewing it.
    All About Pagination in React JS.
    A simple guide to Pagination in React.
    I am Muhammad Yousof. Welcome to my youtube channel code with Yousaf. In this channel, all content will be computer science related like web development, front-end development, database design development, database learning, react js learning, and others.

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

  • @adhekeeloho2751
    @adhekeeloho2751 ปีที่แล้ว +3

    This is the most explanatory pagination video I have seen ever

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

    This video was really great I understand pagination better. I did not believe it was so simple. Praise God and thank you.

  • @DineshKumar-bx1dx
    @DineshKumar-bx1dx 11 หลายเดือนก่อน +1

    After I watching this video, I did completed pagination work !!! thank you🤗😇

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

    thanks u bro yousaf I` m real glad to learn some thing every day every I got alot of errors but when i watch your videos give me a lot of idea i can solve my problems simple honest guide explanation ...

  • @tarunnaik3053
    @tarunnaik3053 6 หลายเดือนก่อน +1

    Thank You For The Simplest video

  • @jigsaw6642
    @jigsaw6642 9 หลายเดือนก่อน

    watched this video. uses pure react to create pagination which is very useful for learning react. good work keep it up

  • @user-pe6bi1zj5z
    @user-pe6bi1zj5z 2 หลายเดือนก่อน +1

    5:58 thank bro

  • @martinfilkov
    @martinfilkov ปีที่แล้ว +3

    Thank you for the great tutorial but I have two problems/features I wanted to ask you about:
    1. I have some white circles in front of each of my hyperlinks that is interfering with me clicking on some of the numbers because they a collisioning
    2. How can I make it so it shows me only the page infront and the page before my current instead of all the pages (something like if I am on page 6: {PREV, 5, 6, 7, NEXT})

  • @maurceetim2399
    @maurceetim2399 7 หลายเดือนก่อน +1

    Thank u so much my friend God bless u.

  • @user-zm8id1fv6b
    @user-zm8id1fv6b 5 หลายเดือนก่อน

    Really Awsome ... need more React js methods

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

    thank you This video was really great I understand pagination better. I did not believe it was so simple. Praise God and thank you. 👻👻👻👻👻👻👻

  • @rishusingh1395
    @rishusingh1395 6 หลายเดือนก่อน +1

    Hi Yousaf, thanks for explaining, but in my case these pagination list items coming in vertical position. Could you please share the CSS as well

  • @ashirwadkumar7128
    @ashirwadkumar7128 7 หลายเดือนก่อน

    Exactly what i was needed thanks bro... Your explanation is good. ❤

  • @CarlosEnriqueDuarteOrtiz
    @CarlosEnriqueDuarteOrtiz 6 หลายเดือนก่อน +1

    Thank you :)

  • @karanpunjabi3077
    @karanpunjabi3077 8 หลายเดือนก่อน

    Absolutely simple & on point tutorial!

  • @world-is-yours
    @world-is-yours 3 หลายเดือนก่อน

    This is cool.
    One Question - If I'm having 50 pages sense will I get the 1 to 50 numbers in a row?

  • @user-ph6jg5mx4x
    @user-ph6jg5mx4x ปีที่แล้ว +1

    Thank you very much Bro, you taught me something very important

  • @flopani5059
    @flopani5059 8 หลายเดือนก่อน

    Works like a charm ! Thank you for this really good tutorial!

  • @user-vu9dl3vn7l
    @user-vu9dl3vn7l 3 หลายเดือนก่อน

    This video was really great! Thanks a lot!

  • @alishamseer
    @alishamseer 9 หลายเดือนก่อน

    🥰 Very helpful video, Thank you very much, well explained

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

    thank you soo much its help me and thats the best way i use it

  • @12_parthgarware50
    @12_parthgarware50 7 หลายเดือนก่อน

    Thank you!! It worked in my project...

  • @NigoraGasai
    @NigoraGasai 7 หลายเดือนก่อน

    You save my life, thank you bro 👍

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

    Gracias querido amigo, e ayudaste mucho con un pequeño proyecto que estoy desarrollando en este momento, Un Fuerte abrazo

  • @muh_ismail
    @muh_ismail 8 หลายเดือนก่อน

    on number item you are using ID,
    i try use {index + 1} but the number just 1,2,3,4,5 not 6,7,8,9,10 per-page.
    how to fix this
    -
    btw nice tutorial sir, thankyou

    • @muh_ismail
      @muh_ismail 8 หลายเดือนก่อน

      oh fixed, i use this
      {index + 1 + (currentPage - 1) * recordsPerPage} .

    • @payalsinha1248
      @payalsinha1248 6 หลายเดือนก่อน

      @@muh_ismail where is the exact change u did, can you please send me ur code

  • @techrify1146
    @techrify1146 8 หลายเดือนก่อน

    nice explaination

  • @freefirezone2902
    @freefirezone2902 5 หลายเดือนก่อน

    Very usefull for me

  • @mohammadarsalan4353
    @mohammadarsalan4353 4 หลายเดือนก่อน

    First all thanks, your explanation awesome
    CSS file or code? not available can you plz share.

  • @BaoTran-gb5te
    @BaoTran-gb5te ปีที่แล้ว +1

    const number = [...Array(npage + 1).key()].slice(1) why i have a error thís

  • @SameerKhan-my3sr
    @SameerKhan-my3sr ปีที่แล้ว

    Thanks for this buddy

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

    Thank you very much, you saved me :)

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

    Amazing tutorial 😍😍

  • @mikz8240
    @mikz8240 6 หลายเดือนก่อน

    Where did I find Data.json?
    It says that:
    Compiled with problems:
    ×
    ERROR in ./src/components/Users.js 8:0-31
    Module not found: Error: Can't resolve './Data.json' in 'C:\Users\ASUS\my-app\src\components'

  • @md.mehedialmamun673
    @md.mehedialmamun673 ปีที่แล้ว

    thanks a lot for this great tutorial , love it

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

    Thank you for this it was great tutorial. watching your this video I got ,S.NO of table is same like 1-5 or next page 1-5 so on....but data changed. how to fix it pls help.

  • @vp351
    @vp351 5 หลายเดือนก่อน

    what numbers variable doing exactly on line 13 ?

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

    Graciass!! Me sirvio mucho

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

    thank you sir

  • @abhinavm8250
    @abhinavm8250 8 หลายเดือนก่อน

    Bro I want change the background color of active blue to any other color how to do it?

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

    did you upload to Github account, if uploaded please share link .

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

    thank you so much

  • @user-jx2ee8ed3m
    @user-jx2ee8ed3m ปีที่แล้ว

    it didn''t work for me , it still shows all the records at once in the same page

  • @rakibulhasanofficial5057
    @rakibulhasanofficial5057 8 หลายเดือนก่อน

    Thanks

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

    ...Array(npage+1) gives me error ,array length is not valid why?

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

      I can't see where is the problem but if you Look at how I wrote the code will be no problem

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

      I also got the same error. This was due to es6 which is present in tsconfig.json. so u can use the below code which fixed my error.
      const numbers = Array.from({ length: npage }, (_, i) => i + 1);

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

      @@krazegaming8415 const numbers: number[] = Array.from({ length: npage }, (_, i) => i + 1).slice(1)

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

      ​@@krazegaming8415 hey do you have its css file?

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

      hey do you have its css file?

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

    Que pasa si no me detecta el diseño la paginacion

  • @thecruz1
    @thecruz1 6 หลายเดือนก่อน

    i also got the error for the array slice

  • @ashutosh_parihar_143
    @ashutosh_parihar_143 7 หลายเดือนก่อน

    also provide a code for better understanding

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

    where is css part?

  • @saurabhkumar-ch2xs
    @saurabhkumar-ch2xs 7 หลายเดือนก่อน +1

    thanks but one mistake is there.

    • @payalsinha1248
      @payalsinha1248 6 หลายเดือนก่อน

      whats that can you please tell

  • @ranjan502
    @ranjan502 9 หลายเดือนก่อน

    bhai source code kaha milega ?

  • @gayathridevip4632
    @gayathridevip4632 2 หลายเดือนก่อน

    source code plz

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

    hey can you provide the css file

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

      its bootstrap default css.

  • @nitingupta1650
    @nitingupta1650 5 หลายเดือนก่อน

    okay?

  • @bhardadivyesh1822
    @bhardadivyesh1822 11 หลายเดือนก่อน +1

    nice video and special thanks👍🫡

  • @gayathridevip4632
    @gayathridevip4632 2 หลายเดือนก่อน

    source code plz