React Select Example | React Dropdown Menu - Fully Customizable

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

КОМЕНТАРІ • 92

  • @MonsterlessonsAcademy
    @MonsterlessonsAcademy  15 днів тому

    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 11 місяців тому +1

    15minutes of pure knowledge! Thank you so much

  • @laagodfather4435
    @laagodfather4435 Рік тому +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.

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

    Great course with clear grammar explanations.

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

    I need input border or outline 0

  • @현이-v7r
    @현이-v7r Рік тому

    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 🙇🙇

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

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

  • @MarijaniNyindo
    @MarijaniNyindo 2 місяці тому

    Bro, this is great! Thanks

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

    Excellent video my friend.

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

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

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

    Thank you so much very helpful

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

    Congrats !!!! High level tutorial

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

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

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

    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

  • @escoladejesusnafreguesiado3319

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

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

    amazing

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

    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 ???

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

    you the best

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

    Thanks man

  • @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

  • @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.

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

    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  Рік тому

      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

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

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

  • @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?

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

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

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

    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  Рік тому

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

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

      @@MonsterlessonsAcademy
      thanks you,
      I got the solution

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

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

  • @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.

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

    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?

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

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

  • @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.

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

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

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

    Thanks a lot :-)

  • @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...

  • @verjanvargasfernandojulian8395

    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  Рік тому

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

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

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

  • @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".

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

    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

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

    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

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

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

    how to include image in the label

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

    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  9 місяців тому

      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__

  • @manhnguyen-kc2pi
    @manhnguyen-kc2pi Рік тому

    What is the theme you use for vs code?

  • @Felipe-wr4xk
    @Felipe-wr4xk Рік тому

    excelent to sleep tonight

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

    Fake video

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

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

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

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