React Material UI Tutorial - 8 - Select

React Material UI Tutorial - 8 - Select

Codevolution

2 года назад

63,212 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Ayush Kushwaha
Ayush Kushwaha - 08.10.2023 22:12

I didn't understand why below code was used?

setCountries(typeof value === "string" ? value.split(",") : value);

why not just this?
setCountries(value);

Ответить
sdfsfsfd
sdfsfsfd - 26.09.2023 20:06

Many thanks. Great explanation.

Ответить
Junior Melo
Junior Melo - 22.09.2023 14:10

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

Ответить
coffee55543
coffee55543 - 24.07.2023 11:05

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?

Ответить
Сашо Иванов
Сашо Иванов - 23.06.2023 13:42

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

Ответить
shruti choudhary
shruti choudhary - 23.06.2023 11:31

your first option was india.. thanks

Ответить
杨志
杨志 - 22.04.2023 03:24

if i need treeselect, how to custom it,thanks

Ответить
ADDA
ADDA - 15.02.2023 19:00

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

Ответить
Renato Garcia de Campos
Renato Garcia de Campos - 09.12.2022 06:16

Amazing job!

Ответить
Shree Powar
Shree Powar - 08.12.2022 16:11

how to add search filter ???

Ответить
Adi Nugraha
Adi Nugraha - 01.12.2022 12:26

how if select using optgroup?

Ответить
Neha Kumari
Neha Kumari - 06.11.2022 15:23

How we can make this field searchable? please tell !!

Ответить
Sushant Kadav
Sushant Kadav - 05.09.2022 09:07

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?

Ответить
David N
David N - 19.08.2022 05:02

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

Ответить
luka lastname
luka lastname - 07.08.2022 15:57

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

Ответить
Mohammad Sohrab Hossain
Mohammad Sohrab Hossain - 07.08.2022 13:20

How to implement this in a react class component?

Ответить
Hesham Ahmed
Hesham Ahmed - 02.07.2022 15:39

is there a way to make cascading select fields?

Ответить
Krishan Kumar
Krishan Kumar - 30.04.2022 22:24

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?

Ответить
Pixel
Pixel - 27.04.2022 21:57

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

Ответить
Ajay V
Ajay V - 08.04.2022 12:07

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

Ответить