React JS filter, search and sort items using react-router v6

Поділитися
Вставка
  • Опубліковано 12 вер 2024

КОМЕНТАРІ • 55

  • @antoniomorga1824
    @antoniomorga1824 2 роки тому +10

    This is absolutely great content! I'm applying for my first job in software development and this has helped me a lot with the technical part of the process. Keep it up!

    • @AntonBacaj
      @AntonBacaj  2 роки тому

      This is great Antonio, happy to hear my content has helped you 👍

  • @RainNColer
    @RainNColer 2 роки тому +2

    this was very handy, i was struggling trying to understand the differences and overlapping concepts of react query and redux in different contexts, i think this gives really good example on where react query comes as a very useful tool :)

  • @cetinsangudev2563
    @cetinsangudev2563 2 роки тому

    Golden content, clear and catchy explanations. I was searching for a server-side search method and man... you just made my day. You deserve more subscribers and you got already +1 from me:D God bless you and good luck with your UA-cam journey.

    • @AntonBacaj
      @AntonBacaj  2 роки тому

      Thank you for that, very happy to hear the content is helping. It will get even better over time 🚀

  • @alvinyanson
    @alvinyanson 2 роки тому

    Good thing I found your channel Anton. Really helpful 👍

  • @smsaikat1209
    @smsaikat1209 2 роки тому

    You should deserve million subscribers. Real thinking, live error solve, optimized code You are awesome. 🧡🧡 And waiting for some production level project videos 😁😁

  • @marma99
    @marma99 2 роки тому

    You deserve more subscribers. Keep going on.
    And good luck for you baby 🥰

  • @sashaBejenari
    @sashaBejenari 3 дні тому

    Nice video, you are the best!

  • @tylr869
    @tylr869 2 роки тому +1

    Thanks Anton, just what I needed. 👍

  • @mathis-meth4229
    @mathis-meth4229 2 роки тому +3

    Look look look everyone!! This guy is posting great content but only has 72 subscribers. Let’s help him build up more subs. Thank you so much! Please make one on pagination in react without react paginate

  • @valtonhalimi6393
    @valtonhalimi6393 2 роки тому

    This what you do is really an amazing work. Keep it up !

  • @ngocchaunguyen1195
    @ngocchaunguyen1195 2 роки тому

    Good job bro. Indeed, this a good content as well as a beauty code. I can learn how to optimize code from you. Keep it up!

  • @annusingh4694
    @annusingh4694 2 роки тому

    Top notch content! 💯 Subscribed!

  • @problemmadchen7299
    @problemmadchen7299 2 роки тому

    I'm very grateful, thank you very much to this absolutely brilliant content!

  • @Ben-fc4tz
    @Ben-fc4tz 2 роки тому

    Wow I really liked this video. Thanks!

  • @loverphp5605
    @loverphp5605 2 роки тому +1

    thanks for make this video you are great

  • @JJ-ot3ps
    @JJ-ot3ps 2 роки тому

    this is great! i am using mongodb to fetch product so hopefully same logic from your tutorials!

  • @vanyamontik2645
    @vanyamontik2645 Рік тому

    Awesome tutorial

  • @aminsoraya
    @aminsoraya 10 місяців тому

    Good professional train❤

  • @keanubarnard5917
    @keanubarnard5917 Рік тому +1

    What extension are you using for the errors to show up ?

  • @alir8zana635
    @alir8zana635 Рік тому

    would you please do a video on which visual studio code extensions you are using?
    thanks for your great tutorials

  • @digigoliath
    @digigoliath 2 роки тому

    Awesome!!! TQVM!!

  • @Alex-ti6br
    @Alex-ti6br 2 роки тому

    Nice content, thx !

  • @nabinsaud4688
    @nabinsaud4688 2 роки тому

    Bring some cool stuffs sir like these

  • @FalioV
    @FalioV 2 роки тому

    Really good video! But I kinda disagree with what is said on 0:20. I worked on Ecommerce with more then 10k products (not a big deal) and what i did was plaing with Redux toolkit and on landing on /categories page I make a call to the db trough some service lair and i store the all products in my Redux state. And after that you can do what ever manipulation you want over the data without doing any calls any where, just 1 call. :) In a place where you have 200k products you can do crazy tricks to increase performence in terms of filtering products. But really this my opinion on the matter, the rest is lit. :)

    • @AntonBacaj
      @AntonBacaj  2 роки тому +3

      Good points!
      I think after a number of products it makes sense to use pagination to reduce the payload size / improve query performance

    • @kalkeshwaryamsani9638
      @kalkeshwaryamsani9638 9 місяців тому

      @FalioV I really need help from you. Can you share the GitHub repo for the e-commerce project.

  • @barankurt4316
    @barankurt4316 2 роки тому

    hello, how can I make this application with the city, district, neighborhood, category buttons?
    (Profil cards filter)

  • @PoetryFromAllWorld
    @PoetryFromAllWorld Рік тому +1

    Good

  • @ICARUSkof
    @ICARUSkof Рік тому

    hi, im looking your tutorial, im learning now react, but i have a problem, i cant list the products, can you help me please?

  • @genosthegreat7870
    @genosthegreat7870 2 роки тому

    Thank u❤️

  • @mescalim7252
    @mescalim7252 Рік тому

    Thank you so much for this wonderful tutorial!!
    What if a bag has multiple colors, for example: [brown, yellow, black]. How can i find it by checking the (separate) boxes of brown, yellow and black instead of selecting one filter called: brown, yellow, black.
    Really looking forward to the answer, thank you !! :)

    • @AntonBacaj
      @AntonBacaj  Рік тому

      Hi! If it has multiple colors you can still perform the filter on the server. Since the frontend gives you one or more colors in a comma format.
      You just need to change how the filter works on server to support a product with multiple colors: github.com/abacaj/react-simple-filter-sort-ecommerce/blob/main/server/index.js#L20

    • @mescalim7252
      @mescalim7252 Рік тому

      @@AntonBacaj thank you so much for your answer!! 🚀 👍🏼 👍🏼 👍🏼!!!!

    • @mescalim7252
      @mescalim7252 Рік тому

      @@AntonBacaj could you please give an example of how to change the code for a bag with multiple colors? When I change the color type from "string" to [string], I get multiple errors everywhere...

    • @AntonBacaj
      @AntonBacaj  Рік тому

      Hi @@mescalim7252, you can see code change here: github.com/abacaj/react-simple-filter-sort-ecommerce/commit/01592d716d3b4ca23df3dd822612110c760309bd
      Try pulling the latest it will support products that have an array of colors, I modified some of the products so that they have multiple colors.
      Like Knapsack, Tiny pouch etc.

    • @mescalim7252
      @mescalim7252 Рік тому

      @@AntonBacaj you rock. 🚀. Thank you so much!!! 😊 👏

  • @insom2959
    @insom2959 2 роки тому

    I have a similar structure in my own project but how do you create individual pages for each item? I mean if someone click the item, it should open a link and I guess I shouldnt all html files one by one but I didnt figure out what to do yet.

    • @AntonBacaj
      @AntonBacaj  2 роки тому

      So for viewing an item, you would create a route using react-router with dynamic segments for the product id

    • @insom2959
      @insom2959 2 роки тому

      @@AntonBacaj thank you so much for the answer and also for the video

  • @anishsingh9331
    @anishsingh9331 2 роки тому

    What extension is that which shows the errors inline?

    • @AntonBacaj
      @AntonBacaj  2 роки тому

      It's called Error Lens
      marketplace.visualstudio.com/items?itemName=usernamehw.errorlens

  • @aliksargsyan2782
    @aliksargsyan2782 Рік тому +1

    it would be better without extra hooks and typescript

    • @AntonBacaj
      @AntonBacaj  Рік тому

      Ah you could do the same without typescript, but I highly recommend it for avoiding errors at runtime

    • @aliksargsyan2782
      @aliksargsyan2782 Рік тому

      @@AntonBacaj ok thank you dear, I will count it ))

  • @JJ-ot3ps
    @JJ-ot3ps 2 роки тому

    btw does this work with next js?

    • @AntonBacaj
      @AntonBacaj  2 роки тому +1

      You will have to make some changes such as removing react-router and changing the useSearchParams hook. You can do the filtering on your next.js /api route

    • @JJ-ot3ps
      @JJ-ot3ps 2 роки тому

      @@AntonBacaj oh great, thanks. I am learning GraphQL, is that a good idea to combine with this project too?

    • @AntonBacaj
      @AntonBacaj  2 роки тому

      You could try it, but personally I wouldn't because the project doesn't have multiple sources for data or a complex schema

    • @JJ-ot3ps
      @JJ-ot3ps 2 роки тому

      @@AntonBacaj oh ok, that make sense, I figured all the ecommerce data is usually come from one database in my case prob mongodb.

  • @sddjango1510
    @sddjango1510 2 роки тому +1

    can you please share your project repo on git

    • @AntonBacaj
      @AntonBacaj  2 роки тому +2

      Just added - you can check it out here: github.com/abacaj/react-simple-filter-sort-ecommerce

  • @nabinsaud4688
    @nabinsaud4688 2 роки тому

    Your baby is crying