Load More Pagination React

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024
  • Udemy Courses:
    9 React Projects on Udemy - bit.ly/2D83M8c
    9 React Projects on Gumroad - h3webdevtuts.g...
    Social Media:
    Web Dev Discord - / discord
    Github - github.com/h3h394
    Twitter - / h3webdeveloper
    Instagram - / h3webdevtuts
    Project Details:
    API - jsonplaceholde...

Комментарии • 105

  • @elendil4543
    @elendil4543 3 года назад +6

    Great trick but it doesn't serve the main purpose of pagination which is limiting the returned records from database and load the page quicker from the user perspective, this method actually will receive all records from your database which is not healthy for your website if it is medium scaled or above ( I won't talk about fact that you will call all records again and again with every api call )

    • @h3webdevtuts
      @h3webdevtuts  3 года назад +2

      Hi, yes you are totally right, this tutorial is not intended for that in any way, you wouldn't ever do it this way with having a database. This was just a simple trick for small data people might have / local data mostly. Thanks for watching :)

    • @elendil4543
      @elendil4543 3 года назад +2

      @@h3webdevtuts actually I used your trick recently for one of my projects and it was really helpful, thank you very much

    • @h3webdevtuts
      @h3webdevtuts  3 года назад +1

      @@elendil4543 Glad I could help. Thanks for watching :)

    • @olenakunina1
      @olenakunina1 3 месяца назад

      kinda feel sorry for all those "aiii....that is exactly what i was needed!!!!!!!!!!!" - agree very confusing content, i would say even harmful, let them all put those buttons to portfolio projects)))))))))))))))

  • @wisdomelue
    @wisdomelue 2 года назад +4

    simple and precise, exactly what i needed thank you!

    • @h3webdevtuts
      @h3webdevtuts  2 года назад +1

      Glad you found it useful. Thank you :)

    • @Dima-j6i
      @Dima-j6i 3 месяца назад

      @@h3webdevtuts Hello. Please tell me, if I want to apply your method to several components, how can I make sure that when the 'showMoreItems' function fires in one component, it does not work in others? I simply pass State and function from parent to child.

  • @bernarduslopez7074
    @bernarduslopez7074 3 года назад +8

    i never thought it'd be so simple.. great tutorial 👍

  • @newcode7847
    @newcode7847 2 года назад +5

    Great tutorial, helped me finish my work task! Thanks a lot!

    • @h3webdevtuts
      @h3webdevtuts  2 года назад

      Glad I could help. Thanks for watching :)

  • @aloysius9037
    @aloysius9037 2 года назад +1

    bro that was amazing thanks

  • @varunsingh2133
    @varunsingh2133 2 года назад +1

    can you please help me like if want only 10 items what should i do

    • @h3webdevtuts
      @h3webdevtuts  2 года назад

      I'm not sure what you are trying to do, can you explain more on this? Thanks for watching :)

  • @canerkuru9681
    @canerkuru9681 2 года назад +3

    Absolutely one of the best coding techniques I've ever seen. Brilliant brilliant!

    • @h3webdevtuts
      @h3webdevtuts  2 года назад +1

      Glad you like it, much appreciated. Thanks for watching :)

  • @raba650
    @raba650 3 года назад +2

    Needed to watch a react rendition of this functionality since I want to implement that for the npm wix pro gallery which uses redux so now I have to convert it to redux as well. Thanks.

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      Hope that this helped and that u got the rest figured out. Thanks for watching :)

  • @marcelo_anselmo_levy
    @marcelo_anselmo_levy 3 года назад +3

    Easy and simple as can be! Thanx mate

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      Glad you liked it, thank you so much :)

  • @sachinsenakulk
    @sachinsenakulk 2 года назад +1

    Awesome 😎👏👏

  • @alexkey9372
    @alexkey9372 3 года назад +1

    Thanks but how would you do that if the api supports the pagination e.g www.apiurl.com/?per_page=2&currPage=1 ? would you simply push new data to array and re-render? As I understand, this returns all JSON data in useEffect.

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      Are you trying to do the same thing as here or something different? This example gets all the items at once, but in your link you know how many items u have because of per page param, so based on that number u can see how many items ur gonna show.

  • @mudassirsayed8703
    @mudassirsayed8703 2 года назад

    How to hide the Load more when it reaches to the end of the data

  • @almahmud5569
    @almahmud5569 3 года назад +2

    very useful! never thought it will be this much easy

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      Glad you found it useful. Thank you :)

  • @ericholdridge4102
    @ericholdridge4102 4 года назад

    Ayyyyye, the slice method.

  • @promiseshedrach7836
    @promiseshedrach7836 3 года назад +1

    Thank you very much @h3webdevtuts for this
    it was really helpful

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      Hey, I'm really glad you found it helpful. Thank you for the kinds words :)

  • @КириллМиронов-о4к
    @КириллМиронов-о4к 3 года назад +1

    hi! Good content!!

  • @aymangouda9708
    @aymangouda9708 25 дней назад

    Thanks a lot , my bro❤

  • @marufaaktereity2976
    @marufaaktereity2976 2 года назад +1

    Thank u so much

  • @jeetsingh-sy5ij
    @jeetsingh-sy5ij 2 года назад +1

    Thank you very much! This is very much helpful for me. I haven't reached to useEffect yet! but I am on useState, I know how to map and Items or create element on click and I was thinking how to limit the data and also how to show more data on click. I will try to implement with only useState if it's possible, I learnt something new again! Thank you mate!

    • @h3webdevtuts
      @h3webdevtuts  2 года назад +1

      Hey, I'm glad you found it useful. I would agree, keep learning, keep making new things, you are doing great! Thanks for watching :)

  • @maaz-a-3578
    @maaz-a-3578 6 месяцев назад

    اقسم بالله برنس
    راجل مية المية حبيب قلبي والله

  • @Codelab-ql3xh
    @Codelab-ql3xh 3 месяца назад

    thanks a lot, brother

  • @fcandann
    @fcandann 3 года назад +2

    Thanks a lot! Fast & good tutorial!

    • @h3webdevtuts
      @h3webdevtuts  3 года назад +1

      Glad you liked it. Thanks for watching :)

  • @truongnguyen-bh8vn
    @truongnguyen-bh8vn 2 года назад +1

    Thanks !

  • @gapobohorc
    @gapobohorc 3 года назад +1

    Čuje se iz avijona, da si neki naš :) hvala za ovaj odlićan video.Pozdrav iz Slo

  • @DeepakSingh-eq8jl
    @DeepakSingh-eq8jl 11 месяцев назад

    simple and nice what i exactly needed.
    thanks Alot ! man

  • @shujathaliirfan2662
    @shujathaliirfan2662 3 года назад +1

    Super

  • @Codelab-ql3xh
    @Codelab-ql3xh 3 месяца назад

    thanks a lot, bro

  • @Code-With-Shakil
    @Code-With-Shakil Год назад

    Thanks for your video , this was really helpful for me .

  • @Metovski
    @Metovski Год назад

    thanks man. i appreciate

  • @SLHacks
    @SLHacks Год назад

    very good!

  • @Muviz
    @Muviz Год назад

    Можно на русском, очень сильный акцент

  • @rargza9169
    @rargza9169 2 года назад +1

    thank youuuuuuuuuuuuu

  • @tunayuzbayyelce3455
    @tunayuzbayyelce3455 Год назад

    Thanks a lot!!

  • @fahimx1426
    @fahimx1426 Год назад

    Great bro :)))

  • @rafiqjarjous7542
    @rafiqjarjous7542 3 года назад +1

    thanks boss! its me Vampie from the discord server :D

  • @ahmad_mido
    @ahmad_mido 2 года назад +1

    can you please make it with pure javascript?

    • @h3webdevtuts
      @h3webdevtuts  2 года назад +1

      Might do it in the future. Thanks for watching :)

  • @brenosantin9739
    @brenosantin9739 2 года назад +1

    youre the boss!!!! great video helped me a lot!

  • @willyelinge
    @willyelinge 3 года назад +1

    Thanks, this video was really useful for me.

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      Glad you found it useful. Thanks for watching :)

  • @LeonardoMoyano
    @LeonardoMoyano 3 года назад +1

    Thanks a lot!!

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      You are welcome. Thanks for watching :)

  • @ldstudio3044
    @ldstudio3044 3 года назад +1

    Thank you Bro :)

  • @cury0224
    @cury0224 2 года назад +1

    It's was so simple!!! Thank you!!!

  • @baybay1904
    @baybay1904 2 года назад +1

    that's cool sir, thank you so much 🙏

  • @robotoidgaming9422
    @robotoidgaming9422 3 года назад +1

    Thank You, Bro. You help a lot

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      You are welcome. Thanks for watching :)

  • @shubhamsaxena6412
    @shubhamsaxena6412 3 года назад +1

    you r awesome , and expalined very well

    • @shubhamsaxena6412
      @shubhamsaxena6412 3 года назад +1

      it would be more helpful if you attach the codeSandBox link or upload the code at github . So that people can run the code

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      @@shubhamsaxena6412 Yeah, most of the time I remove the projects after they are done so that's the main reason. But I will see to improve that in the future. Thanks for watching :)

  • @learnwithvigneshvijayakumar
    @learnwithvigneshvijayakumar 2 года назад +1

    Great content.Really informative.

    • @h3webdevtuts
      @h3webdevtuts  2 года назад

      Glad you found it useful. Thank you :)

  • @rezwanatcha
    @rezwanatcha Год назад

    Great tutorial, but is there a way to hide the load more button if there is no more content to load?

  • @tj-softwaresolution
    @tj-softwaresolution Год назад

    how is it possible to set the focus on the new posts so that you do not have to scroll?

    • @UNDEREFFCT
      @UNDEREFFCT 4 месяца назад

      You can use the window.scrollTo function which takes 2 arguments X and Y

    • @tj-softwaresolution
      @tj-softwaresolution 4 месяца назад

      yeah makes sense. thanks bro

  • @nazmulhudarimon4416
    @nazmulhudarimon4416 3 года назад +1

    Thanks mate. Thanks a lot

    • @h3webdevtuts
      @h3webdevtuts  3 года назад +1

      Glad you found it useful. Thank you :)

  • @farhanalfariqi6778
    @farhanalfariqi6778 3 года назад +1

    Absolutely Brilliant!!

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      Glad you found it useful. Thank you so much for the kind words :)

  • @ЕвгенияАмелина-ю4р
    @ЕвгенияАмелина-ю4р 3 года назад +1

    thank you :)

  • @arezkiait_1171
    @arezkiait_1171 2 года назад +1

    very helpful , thank u :)

  • @toshitsingh7270
    @toshitsingh7270 Год назад

    Thanks for the video, super easy and on point. It helped a lot ❤

  • @JoinMeInLearning
    @JoinMeInLearning 4 года назад +1

    Thank you Bro :)

    • @h3webdevtuts
      @h3webdevtuts  4 года назад

      You're welcome, thanks for watching :)

  • @MujahidulIslam
    @MujahidulIslam 6 месяцев назад

    thank you

  • @aihacker42
    @aihacker42 Год назад

    Add code link direct in video description please😄

  • @suatbayrak2703
    @suatbayrak2703 4 года назад

    great idea thanks for the tutorial

    • @h3webdevtuts
      @h3webdevtuts  4 года назад

      Glad you liked it, thank you for watching :)

  • @cazterk
    @cazterk 3 года назад +1

    Easy does it

    • @h3webdevtuts
      @h3webdevtuts  3 года назад

      Glad you found it useful. Thanks for watching :)

  • @copeseethe8794
    @copeseethe8794 Год назад

    Thanks