React Select Example | React Dropdown Menu - Fully Customizable

Поділитися
Вставка
  • Опубліковано 15 січ 2025

КОМЕНТАРІ • 92

  • @MonsterlessonsAcademy
    @MonsterlessonsAcademy  4 місяці тому

    WATCH NEXT: React Interview Questions and Answers - Dominate Your Next Interview - ua-cam.com/video/yQHr4opz_N0/v-deo.htmlsi=51b2XP_84GH3q6oF

  • @KibototV2
    @KibototV2 2 роки тому +16

    I think your content is high level, you're providing useful information - at least to me, as a mid frontend developer. I haven't noticed how many subscribers you have or the views on the videos until now, but now when I've noticed it - you should have a lot more people following you in terms of content quality.
    There's quite a lot time making content, filming it, editing and being consinstent. Thanks for your time and I hope you'll read this and make your day a bit better. Cheers from Croatia!

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

    Excellent video. No fluff, straight forward, clear, comprehensive, and to the point. Well done.
    I know many videos cover creating a select from scratch, but in the real-world, you often rely on libraries and don't have time to re-create the wheel when when there's excellent, industry-tested libraries like this. The problem is that sometimes these libraries are complex and their documentation is awful, or lacking!
    So this is fantastic! Libraries for surprisingly complex features like this are important.
    For this library though, I would consider adding an addendum video covering the "components" property, allowing users to replace specific components.

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

    15minutes of pure knowledge! Thank you so much

  • @王雋杰-t5o
    @王雋杰-t5o Рік тому

    Great course with clear grammar explanations.

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

    Very clear and straight to the point. Thank you so much.

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

    I'm really grateful to you, man, for this wonderful explanation.
    According to KibototV2, your content is of a very top quality, and you should be followed by a lot more people.

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

    Bro, this is great! Thanks

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

    Thank you, this was a great tutorial. Much appreciated.

  • @현이-v7r
    @현이-v7r 2 роки тому

    Oh my god i was searching a way how to create at dropdown for one week i am so so glad to meet you sir so thank you 🙇🙇

  • @ramizkhan3967
    @ramizkhan3967 8 місяців тому

    Excellent video my friend.

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

    Congrats !!!! High level tutorial

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

    Thank you so much very helpful

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

    I need input border or outline 0

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

    Hi what IDE are you using? looking nice, can you please share how to setup?

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

      Hi, I already covered that
      ua-cam.com/video/j6uqOvTRq6I/v-deo.html
      ua-cam.com/video/YrLiugDhCuk/v-deo.html
      ua-cam.com/video/Xa4aOOB7XZo/v-deo.html

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

    Greate Video!!!
    How can i add buttons on top of options?

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

    Thanks man

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

    amazing

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

    Is there a way to manually update the value of a react-select ? without adding a value field?

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

    How to display the all options value in.field in Multi select . Before multi select i have one drop down based on that drop-down option i will generate the options of multi select value should be by default selected in the field

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

    What if i have a paginated api and i want to load page 2 as i scroll down?

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

    Hello, how can i select value instead of object to post to API
    Thank you

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

    Thanks a lot :-)

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

    Great Video! But I have a query related to creatableSelect, I need to show already selected options in inputfield of creatable select. I have set it in the options state, but i still see no options already selected in the inputField of creatable, can you help me out on this?

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

    Hi Oleksander, I would like to ask you for example I have a mern project to create a movie DB and I have to choose from react-select only one genre for each movie and can't be repeated ???

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

    Great,
    help!
    problem: how to align left the single value and placeholder like you, I did it same like you, but w my select placeholder and single value are in center.

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

      Hi, no idea but you can take the source code in the description to get the same result.

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

      @@MonsterlessonsAcademy
      thanks you,
      I got the solution

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

    Thank you, this was very helpful! I was also looking for a way to customize the arrow in the react select drop down. Do you know if it is possible?

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

      Hi I didn't try that. You need to check documentation.

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

      @@MonsterlessonsAcademy Thank you for the response.

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

      @@nikolaganev6216 Hey, did you find which part of the documentation actually refers to this? It's quite the mess. I want to remove the arrow entirely.

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

    hi please make a video on dependent dropdown using fetch api data and react hook.

  • @manhnguyen-kc2pi
    @manhnguyen-kc2pi 2 роки тому

    What is the theme you use for vs code?

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

    Hallo, great video thanks,. hhmm, i have once question for CRUD process, how to set value the react-select after we load data from API. In case i use react-hook-form...
    can you give me a solution, i'm stuck here...
    many thanks...

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

      Hi, you set a value in react-select and then in onChange you just update your state outside of the component. In this way it doesn't matter what you use outside of react-select

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

      @@MonsterlessonsAcademy hi, the problem is when i not change react-select when data incoming from API then i submit data and state is always null.. except i change the react-select the state not empty...

  • @MohamedNagy-zd8xn
    @MohamedNagy-zd8xn 4 місяці тому

    you the best

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

    How to create chart(bar/line) graph, after selecting values from Drop-down from api?

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

    Really great tutorial, my question is, can I use formik to handle validation, onChange and onSubmit with this component...have you worked on something like this before?

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

      Hi, it is completely possible. You just provide a custom component in formik Field which gets options, field, form and you return react-select there.

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

    Nice video man. One question though, how to disable their hover styles? Their documentation is really bad in my opinion...styling aspect was covered terribly. Besides "isSelected" and "isFocused" how am I supposed to know which other states are there?

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

    showing how to change the styles on focus would be a bonus2x, i'm crazy after how i can do it, the documentation it's just not that great. But your video helped me a lot, thank you

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

      Sorry I can't recommend anything as I didn't solve such problems in react-select

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

      I have a solution, all you need to do is to target the component you want to style and then call the state.isFocused method

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

    Thank you, your content is high level, but I have a question for you. How can I change the text inside the package? e.g. "Select..." "Select All".

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

    Thanks to this video I was able to create the exact reusable drop down I wanted. Thank you so much. But now I can't seem to extract the selected value to use it in the parent component. Do you have an example of how to forward the ref to a reusable react-select component and the selected value back in the parent component ?

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

      Hi, you set your state outside of react-select and in onChange function of it you update your state. So your state is not related to react-select at all and you can share it in any way.

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

    Hello, do u know a way to show lets say 10 of 50 options on react-select and then it should be scrollable to see more options? I would love to get some help here :P

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

      Here is infinite loader implementation
      stackblitz.com/edit/react-select-infinite-scroll?file=index.tsx

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

    Hello Guys! Can you show me how to use React-select with Search Button ?

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

    how to include image in the label

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

    i cant reset display select when i reset state. but reset just as I wanted. please everyone help me

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

    Hi sir, Thanks for this amazing video.
    React select has one issue: i can't make deadt selected option by value, they need value,label go make selected. its needed when you have only id from database.
    example:
    const countries = [
    { value: "MG", label: "Madagascar", icon: MgIcon },
    { value: "UE", label: "Union Européenne", icon: UeIcon },
    { value: "BD", label: "Bangladesh", icon: UeIcon,sele:true}
    ];
    ({
    ...base,
    display: "flex",
    alignItems: "center"
    })
    }}
    components={{
    Option,
    MultiValue
    }}
    />
    it should select UE, but its not working like this, they need { value: "UE", label: "Union Européenne", icon: UeIcon } this.
    DO you have any solutio? sir

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

    Thanks for the video, but it did not help me. I am trying to make it so my select box does not increase in size as options are added and so that the height can be manipulated of the select box itself. Working with react-select is tough! Not a very good library imo.

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

      I don't know any library which is better. If you need it super customizable then you can just build it yourself.

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

    Thanks, bro how to remove __isNew__:true object?

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

      You can just take properties that you need or directly delete __isNew__

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

    why is everyone using dummy data? what if i have 300 entries!! Could you please use an API? I would personally like to see how you implement the using an API say from rapidapi or another.
    Good tutorial meanwhile

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

      If you have 300+ entries then you need a search inside a select. I showed it in the video.

  • @Felipe-wr4xk
    @Felipe-wr4xk 2 роки тому

    excelent to sleep tonight

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

    Fake video

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

    Акцент крутой

  • @kanishkayadav4257
    @kanishkayadav4257 8 місяців тому

    How do we reduce the box height and ceter the drop-down arrow after reducing height