Search Filter in React JS - Filter Through Results

Поделиться
HTML-код
  • Опубликовано: 27 июл 2022
  • In this video we build out live search functionality using the filter method, map method, and some react state. We import data from "Mockaroo" which is a pretty cool platform that allows you to draft up mock data for use while building applications. We save the data in to a "data.js" file, but it can simulate getting data back from an API (minus the API call in this case). Thanks for watching!
    ❤️ Support the Channel
    www.buymeacoffee.com/clintbriley
    Instagram 💪
    / fireclint
    Github Repo
    github.com/fireclint/filter-c...
    Mock Data
    www.mockaroo.com/
  • НаукаНаука

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

  • @juanxc7
    @juanxc7 6 месяцев назад +18

    my bro here just accomplished what I've been struggling with for a whole month in 8 minutes what a pro

  • @sebastianlozano7707
    @sebastianlozano7707 7 месяцев назад +7

    Literally I watched 5 other videos trying to understand how to render the list filtering the data and they made it look so difficult! You were way clearer my friend! Thanks so much!

  • @marcelooliveira5034
    @marcelooliveira5034 Год назад +11

    thank you so much for this! really helpful and straightforward. exactly what I needed for a project!

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

    this just solved the problem I had for the last 8 months. Thank you so so much! you dont know how much I appreciate this help

  • @the-boss-98
    @the-boss-98 6 месяцев назад +2

    Every video you make is so helpful

  • @vibhashanaranhinda3774
    @vibhashanaranhinda3774 Год назад +4

    The most simplest and easy to understand tutorial. Keep making awesome tutorials like this.

  • @josephomotade864
    @josephomotade864 Год назад +5

    You are behind my success with react and being a web developer.
    Thanks again bro.

  • @benrenny9828
    @benrenny9828 Год назад +10

    Hey Colin I'm grateful for your content. Keeps improving my js skills. Please a typescript tutorial will come in handy

    • @codecommerce
      @codecommerce  Год назад +3

      Thank you dude! Typescript coming soon

  • @selfmadetool
    @selfmadetool Месяц назад

    Thank you, sir. I was able to incorporate filtering into my project within a few minutes.

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

    Wow literally took me 3 minutes to apply what shown on the video, great job¡

  • @kisshore3853
    @kisshore3853 9 месяцев назад

    Clean & Clear mate, thanks ❤

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

    Very succinct video! As always I enjoy your content. I'm excited for the typescript video!

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

    Thank you so much man, I've learned a lot from this video.

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

    Thanks your video made me to understand how filter really works!

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

    Best Coding Tutorial Voice I have encountered so far.

  • @user-sh1hr6si3j
    @user-sh1hr6si3j 6 месяцев назад

    Very good Explanation! 👍

  • @nicmantzivis8978
    @nicmantzivis8978 Год назад +1

    Wow, I wrote so much code to achieve the same result, well done and thank you for this solution 😁

  • @user-zg3oh2dc2m
    @user-zg3oh2dc2m 5 месяцев назад +1

    Thank you very much for this video! 💯

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

    just what i was looking for, thank you

  • @nanakwekuotoo1775
    @nanakwekuotoo1775 Год назад +10

    I don't know how you're being slept on.
    You're my best react teacher on here💯

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

    thanks for this video, easy and fast,
    greetings from Argentina

  • @bakinloye2398
    @bakinloye2398 10 месяцев назад

    Thank you very much for this concise and straightforward tutorial. its so easy to grasp

  • @Hachirou_Genji
    @Hachirou_Genji 7 месяцев назад

    thank you so much for this, I'm grateful for you

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

    That was great! Thank you so much

  • @TheVedicWarrior
    @TheVedicWarrior 10 месяцев назад

    Thank man it was so helpful and easy ❤

  • @marcusaureliusregulus2833
    @marcusaureliusregulus2833 Год назад +1

    I am somewhat new and was just wondering, will this not be slow? Or is this the best way how it is done? Apart from server side fetching. Will it be ok with thousands of items?

  • @leonelpaez9358
    @leonelpaez9358 Год назад +1

    Great work mate, too easy!

  • @robbobpirate3678
    @robbobpirate3678 Год назад +2

    that .includes() is a game changer thanks for the knowledge

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

    Thanks man this video was useful!

  • @pnahar0847
    @pnahar0847 Месяц назад

    just wanted to ask im on windows and vscode doesn't autoformats code in js when i save the data what do i need to do?

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

    I used this search method while developing my project, it was much better, you are great

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

    Brilliant video, thank you!

  • @anoopk.s1255
    @anoopk.s1255 10 месяцев назад +1

    I Check so many videos but don't understand.this video so comfortable and understand ❤ thanku

    • @codecommerce
      @codecommerce  9 месяцев назад

      Thank you- much appreciated!

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

    Your vedio made my life easy❤

  • @user-dv1sv8ev5b
    @user-dv1sv8ev5b 19 дней назад

    How did you convert the json data to normal object data inside the Vs code? struggling with that for days

  • @user-ml6he2yr3y
    @user-ml6he2yr3y 7 месяцев назад

    how about pagination? if we implement pagination, does it only filter the first 'n' data ?

  • @thirumalasettysaisatish1043
    @thirumalasettysaisatish1043 Год назад +1

    Thanks for the tutorial, Brilliant Video!

  • @SyedHazratRazaQuadri
    @SyedHazratRazaQuadri 5 месяцев назад

    how to handle if my form in different component like input tag search bar is there in navbar component and my data is in product component?

  • @jordiverbeek4917
    @jordiverbeek4917 2 месяца назад

    i have a question, i want to have my search bar in my header but how do i pass the state from the header to the app.jsx?

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

    Thanks a lot, indeed benefited. Nairobi, Kenya

  • @matthewtang6806
    @matthewtang6806 8 месяцев назад +1

    Thank you for your tutorial! Would be pleased to know if i've seperated the SearchBar & CustomerTable, how can i access the search value of useState in SearchBar.jsx in CustomerTable filter( )?

  • @slblackmamba
    @slblackmamba 4 месяца назад +1

    just simple and perfect. thanks

  • @arnabsarkar5245
    @arnabsarkar5245 8 месяцев назад

    One of the most easiest video I have ever seen

  • @tomasburian6550
    @tomasburian6550 Год назад +1

    Good stuff that every beginner should know as searching through data is a vital part of many projects out there. Just to be sure, if I want to search according to various parameters, not just the first name, I'll chain the filter functions like you showed in the Filter Method video?

  • @chrisdizzle313
    @chrisdizzle313 16 дней назад

    This is EXACTLY what I need to do!

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

    Really ur great.. i tried with many videos but ur videos awesome man

  • @respectgmechager8054
    @respectgmechager8054 9 месяцев назад

    Thanks a lot..u save lot of time ❤❤❤❤..love from India
    I subscribed u

  • @nimethhr9806
    @nimethhr9806 Год назад +1

    Thank you very much just what i needed

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

    I wonder why after filter I can not use onCLick on filtered items,

  • @Carla-ib4ue
    @Carla-ib4ue Год назад

    Nice video. Mockaroo seems to be a great tool, gonna make my next project using it! Thanks!

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

    thanks that was a great little trick i did had an idead how to do it but u made it simpler for me. thanks a lot LOVE from INDIA

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

    Awesome as always 🔥🔥

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

    Great video, thanks.

  • @santhoshn9769
    @santhoshn9769 Год назад +7

    I feel like very comfortable in search filter. after watching this

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

    Great video!

  • @-Sigma111
    @-Sigma111 Год назад

    thanks, it helped me save more time

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

    Thanks a lot man !

  • @vimz92
    @vimz92 Год назад +1

    Bro, Thank you so much. Subscribed

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

    it's so helpful, thanks man

  • @LeaNahuelMartinez
    @LeaNahuelMartinez 3 дня назад

    Thanks for this info, still util !

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

    How can I have the same result considering that my search input is a separated component?

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

    Thank you very much, it helped me a lot for a requirement

  • @anandgomaskar2210
    @anandgomaskar2210 11 месяцев назад +1

    thanku so much upload this vidoe it's really hlep me

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

    Very helpful:) thanks

  • @FootballForThePeople
    @FootballForThePeople Год назад +2

    Hey. Yet again, great video. If I also want to filter by another param such as.. email. Syntax wise, how would you go about this - if we want to filter by not only name but more?

  • @JasleenKour-ue1ie
    @JasleenKour-ue1ie Год назад +1

    sir if u search with upprcase letters than it won't show anything....so can u help with that

  • @mohammadDeveloper2431
    @mohammadDeveloper2431 9 месяцев назад

    Awesome sir very nice explain

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

    Very helpful tutorial. Many thanks

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

    Really helpful for my project. Thanks😁😁

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

    Thank you so much for the great content .

  • @mdtajulislammt4707
    @mdtajulislammt4707 8 месяцев назад

    Very thankful video

  • @georgitodev7865
    @georgitodev7865 8 месяцев назад

    Perfect job

  • @MorrisonMac
    @MorrisonMac 9 месяцев назад

    Life saver, thank you

  • @scalarcoding
    @scalarcoding 7 месяцев назад

    Hi, I wanna ask, what if our search bar is in another functional component? do we need to pass the onchange function to parent component and then drill the keyword props to the table component?

    • @scalarcoding
      @scalarcoding 7 месяцев назад

      Thanks I found out the answer

  • @user-qs9gd6ov3p
    @user-qs9gd6ov3p 29 дней назад +1

    Thank you

  • @srs8074
    @srs8074 5 месяцев назад +1

    You are just awesome 😊😊😊

  • @mohammedadam5711
    @mohammedadam5711 10 месяцев назад

    Thank you so much

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

    hey thanks for the video !
    but what if we want't that filter on email and phoneNumber too ? how should we say that ?

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

    Awesome content bro! 🔥

  • @UddhikaIshara
    @UddhikaIshara 8 месяцев назад

    Thank you very much

  • @nihalmp4559
    @nihalmp4559 9 месяцев назад

    Thanks bro!

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

    It was brilliant bro thanks a lot ❤

  • @exploreeewithus-om6gb
    @exploreeewithus-om6gb Месяц назад

    can we use date filter like from range to range??

  • @bibakgh6810
    @bibakgh6810 8 месяцев назад

    very good . thank you

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

    great video sir

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

    Great video

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

    It's much easier than I thought. I thought making a search filter would be complex. Thanks for sharing ❤.

    • @codecommerce
      @codecommerce  Год назад +1

      Debunking the complex stuff!! Thank you Shahid!

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

    I searched a search filter video for so long today only i got an awesome sause video man ,thanks for that 👏🔥🔥🔥

  • @amalnathk7456
    @amalnathk7456 11 месяцев назад

    Thanks mahn🎉

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

    Thank you so muchhhhhh

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

    Is it possible to do that using useRef rather than useState?

  • @Deqike_Michael2
    @Deqike_Michael2 2 месяца назад

    gr8 video, but how about last name, email, phone searching? is it possible to search simultaneously whenever I typed once?

  • @goss-amer
    @goss-amer Месяц назад

    thank you!!!!!!!

  • @konatesoumahila2806
    @konatesoumahila2806 7 месяцев назад

    grand merci à vous! +1 abonné😊💯

  • @hamaomer1825
    @hamaomer1825 Месяц назад

    thank you

  • @blazerdork3497
    @blazerdork3497 Год назад +2

    Hi Clint, can it also be done by using the react props?
    PS: another great video! can't wait for the next one :)

    • @codecommerce
      @codecommerce  Год назад +1

      Hi Blazer, I kept everything in the App component, but yes!

  • @diyatripathi503
    @diyatripathi503 9 месяцев назад

    Thanxxx man...

  • @ScottSmyth-rf4bm
    @ScottSmyth-rf4bm Год назад

    Cool thanks

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

    nice content

  • @user-fu9wl6yn2d
    @user-fu9wl6yn2d 10 месяцев назад

    Thank You very much Sir