Search Bar with suggestions and filter in react for beginners

Поділитися
Вставка
  • Опубліковано 28 вер 2024
  • In this tutorial, I show you how to build a react search bar with suggestions. If you want to build a react search bar with autocomplete or suggestions feature from scratch, this video can help you.
    If this video gets more than 50 likes, then I make the second episode of it. Please share what you exactly are looking for and put a thumbs up, the rest is on me!
    You can download the project source code from here: pezeshkzade.co...
    Hope you enjoy it.
    Consider subscribing...
    Have a great day.

КОМЕНТАРІ • 60

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

    You can download the project source code from here: pezeshkzade.com/blog/source-code/

    • @akhileshh4832
      @akhileshh4832 5 місяців тому +1

      im unable to open this link

  • @edmonkhachatryan5150
    @edmonkhachatryan5150 11 місяців тому

    Thank u my friend it was very helpful tutorial👋👋

  • @7taztoons
    @7taztoons Рік тому +18

    if you put fullName.includes(searchTerm) instead of fullName.startsWith(searchTerm) you can search on first and lastname in the same time

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

    عالی بود مسعود

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

    Thank You so much❤❤❤❤❤

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

    Really good and clear video :)

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

      1.A list of items is to be shown when the user clicks on the input field.
      2. As the user types, the items in the list should get filtered according to the input.
      3. On clicking on an item, it should get added as a chip (ex. Marina Augustine) on the top and your input field should shift accordingly.
      4. Once the item is added as a chip it should be removed from the list of items.
      5. Every chip should have a cross (X) icon, clicking on it should remove the chip and add it back to the list.

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

      Can you help me out for this point I see your video it is effective but can you help me out with this point or we can make a video tooo🙏

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

      @@ananddarshan5911 Hi Anand, am also looking for the same assignment . please help me bro 🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏 if you have a solution.

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

    thank you

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

    Why would you make a video just to hide the source code? are you ok in the head?

  • @0tiii
    @0tiii 4 місяці тому

    Few problems:
    - No arrow navigation
    - No result highlighting
    - Result list will affect other element positions

  • @ifaduolasamuel7144
    @ifaduolasamuel7144 6 місяців тому

    Hi, please the like to the codebase isn't working

  • @ezeldesilva2717
    @ezeldesilva2717 8 днів тому

    How about if the id is the one being search I got an error with starts with..thank you in advance

  • @mr.rahimosaab2693
    @mr.rahimosaab2693 2 дні тому

    Very good job boss... for beginners.. many thanks for help

  • @helguuhucu
    @helguuhucu Рік тому +2

    Hi! Reading some of the comments made me super sad. How can some people have such negative attitude towards you? Cursing and demanding certain things as if you owed them something? It is a clear video, with clear English, and you can watch along the video and write the code, instead of demanding for things to get to you already 100% done. And if you really need the source code, you can ask for it politely.
    Masoud, keep up the good work and I hope that you don't get discouraged by such comments. Have a great day :)

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

      Thanks bro, yes I will continue and try to improve my content

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

    your English is very understandable- I have no problem 👍 so weird that people say that its "weak" lol

  • @prajanbhattarai3124
    @prajanbhattarai3124 Рік тому +6

    short and to the point. love the video.

  • @CLeovison
    @CLeovison Місяць тому

    Man even if it is a 2year old tutorial it was really helpful to me. Thank you so much for this

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

    waiting for part 2.. i made a search filter (not using your video ) but it only adds the first search from the top - ill check if your video helps fix it ;)

  • @p1k1m4ru
    @p1k1m4ru 6 місяців тому

    helped me a lot, thank you! great stuff. Works way better than the first one that indian guy explained.

  • @ManojSharma-cz7mi
    @ManojSharma-cz7mi Рік тому

    thanks. Do you have any code just like (select > option) > selectpicker (same as boots tap jquery ) > Allselect deselect , search ?

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

    If we have to add API from POSTMAN rather than the MOCK data then how it should be done..??? I am stuck at that thing..

  • @tnhunters4647
    @tnhunters4647 3 місяці тому

    thanks bro

  • @yunsivattha
    @yunsivattha 5 місяців тому

    very good, i learn much from you. plrease, add more video

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

    amazing video, short. to the point and very usefull

  • @kwameappiah-kubi1128
    @kwameappiah-kubi1128 Рік тому

    anyway to make this accessible and have keyboard navigation?

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

    Amazing video, thanks

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

    thanks man

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

    Really good Tutorial. it save my time , Thanks

  • @umavijay9171
    @umavijay9171 7 місяців тому

    Not able to access the source code link.

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

    How can I make it a reusable component for my entire project

  • @fabioalejandrocamargodiaz4838

    I know talk spanish so... Señor lo amo

  • @kennedysithole5316
    @kennedysithole5316 6 місяців тому

    That was helpful. Thank you..

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

    Love from India , Nice explanation

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

    Thank you for this tutorial! Excellent, easy to understand, and concise.

  • @jonathanmarois9009
    @jonathanmarois9009 2 роки тому +4

    You should have explained your dependencies... especially the purpose of react-select.

  • @bernardsamapoh3619
    @bernardsamapoh3619 3 місяці тому

    Awesome!

  • @williamramos3866
    @williamramos3866 11 місяців тому

    os indiano vao dominar o mundo

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

    Thank you Masoud ..you have made my day

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

    thank you so much

  • @Joe-xo8ns
    @Joe-xo8ns 11 місяців тому

    Thanks

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

    Thank you

  • @gemsy.net.reviews
    @gemsy.net.reviews Рік тому

    Awsome!

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

    clear and straightforward, thanks

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

    thanks alot sir
    reallly helpful it was

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

    ty

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

    Amoo masoud eshghi damet garm

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

    Amazing, thank you!

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

    Short and to the point

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

    If i unfocus the search bar, the dropdown stays. How can this be fixed?

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

      U can hide drop-down. When input focused u can show drop down.
      Opacity 0
      Visibility hidden

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

      ​@@us28363hdhd
      Did you try this?
      What happened to me in this case is, that in when I click on dropdown line, the focus is no longer on input field and disapears.
      So I can't select item from dropdown...

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

    Where is the fucking source code? After being forced to subscrive to a newsletter and after I confirm my email I click on download source code and I end up in a sandbox with something that has absoulytely no relation with this video. Which, by the way is buggy and doesn´t work.
    A very poor experience indeed.

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

      Hi sorry about that, I will fix the website soon, you can download the source code from here: codesandbox.io/s/clever-violet-vxupkq

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

      @@ReactWithMasoud this would be useful for my successors, I already deleted the whole exercise and passed to next video. Anyway thanks.

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

    I appreciate You For teaching but your English language speaking is weak
    Thanks alot

    • @Itsme-hy6jr
      @Itsme-hy6jr Рік тому +4

      If you don't understand his speaking you should improve your listening skills because the video is completely clear and understandable.