React Material UI Tutorial - 8 - Select

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

КОМЕНТАРІ • 48

  • @dennisgonzales9521
    @dennisgonzales9521 2 роки тому +5

    Appreciated the usage of typescript :)

  • @habibiSD
    @habibiSD 2 роки тому +5

    Amazing job love your work. Why did you choose to go with TexField over Select component?

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

    Nice, but what about on update a record
    How to set dynamic value fetch from database for select using setValue react hook form and mui

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

      do you know how to excute the question you asked i am confused to use the dynamic values if you have kindly share the repo thanks

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

    great tutorial. could you please upload the codes and let us to download it and have all components?

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

    How can we have drop down only
    for display

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

    Many thanks. Great explanation.

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

    How will I work with onFocus event in select input? İt is not working with select input while working with others type of input.

  • @rg.campos
    @rg.campos Рік тому

    Amazing job!

  • @СашоИванов-л3ц
    @СашоИванов-л3ц Рік тому

    How to make dropdown list sticky when i scroll up and down, it moves ?

  • @杨志-n6z
    @杨志-n6z Рік тому

    if i need treeselect, how to custom it,thanks

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

    I would very much like to see the select implementation with checkbox and chips component in the advance section later in this series... Hope you'll make one...

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

      yes i prefer checkbox too. i think the same thing

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

    Hello, Your tutorials are excellent.
    I follow the same steps shown in the video, but in the console, logs country is printing twice.
    What is the reason behind this?

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

      If Im not mistaken it has something to do with react.strictmode.

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

      This is because of react strict mode and this happens only in dev builds not in production builds.
      This happens to scan over code and show the possible warning if it exists.

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

    What is the theme of your VS Code? 😀

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

    how if select using optgroup?

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

    How to implement this in a react class component?

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

    how to add search filter ???

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

    Muito bom, Parabéns pelos seus vídeos.

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

    where is the source code of this course?

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

    is there a way to make cascading select fields?

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

    I didn't understand why below code was used?
    setCountries(typeof value === "string" ? value.split(",") : value);
    why not just this?
    setCountries(value);

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

      Because user can choose one country and that will be string and could send more then one country and that will be array

    • @DSWork-hj4kc
      @DSWork-hj4kc 6 місяців тому

      Been a while so I'm assuming you figured this out. But for anyone else reading this: if you're following along with JS instead of TS like I am, "setCountries(value)" is perfectly fine. However, variables have set types in TS, and like the other guy said, "value" can be a string in some cases. You can't assign "value" (a string) to "countries" (an array) if you're using TS, so you need to use "split()" to convert the value into an array first.

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

    HI there , i want to a know how to set dynamic value in select button using map and fetch that data which is selected using event how could i can do this could you explain

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

    What is the difference between the Select component and the TextField field component used like this?

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

      idk correct way is to use select component, textfield component does not even works for me

    • @MichaelShingo
      @MichaelShingo 11 місяців тому +1

      Seems like TextField can give you more ability to customize the design and functionality of a dropdown

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

    Well done

  • @KrishanKumar-zr7pu
    @KrishanKumar-zr7pu 2 роки тому +1

    setCountries(typeof value === "string" ? value.split(",") : value);
    Why giving value in else condition?
    setCountries(typeof value === "string" && value.split(","));
    Why we can't use this?

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

      I think it is a good practice to use ternary operator over && operator if we want to use short hand of if-else, but if we want to check both the conditions to be true like
      if (value && array.length && !error) {
      * do something *
      }
      here we must use && operator. And there is one issue with && operator that if you want to do something if array.length is true and you use array.length && *your code* it work totally fine but if array.length is false it will display '0' (zero) on the UI which you have to handle further. So to avoid such scenarios try using && operator only for conditions and ternary to handle truly and falsy values.

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

    U are a god

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

    Could u make video about react-redux with multiple langauge

  • @shrutichoudhary-oi5wf
    @shrutichoudhary-oi5wf Рік тому

    your first option was india.. thanks

  • @pranjalgogoigaming-1209
    @pranjalgogoigaming-1209 11 місяців тому

    NICE

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

    Can someone tell me how the line executes?
    typeof value === "string" ? value.split(",") : value
    I didn't understand the execution. If I select option India, I get object as 0:"IN". Now it compares typeof value === string which is false. Now it assigns the second option value into countries. but how the value appends to the string array here? As far as I know to add new element into an array arr, we do setArr([...arr, value]); Why aren't we doing the same over here? What is the use of split(",") here?

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

      same issue with me.

    • @simpleCoder-r4h
      @simpleCoder-r4h 7 місяців тому

      the value of e.target.value is array not object, by doing value === 'string' ?value.split(','):value , we are checking if the value is string or not if it is a string than using value.split(',') we split the that string into array than it will be assign to countries but if its array by default then we just directly assign the value to countries

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

    Pls show good way for styling app, styled looks like a mess for me( Event makeStyles looks better

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

    Great

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

    Looking for Chips :D :P

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

    as long as typescript is not necessity to learn mui, it is better to use react in tutorial.

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

    Please upload android tutorial using kotlin 🥺