Тёмный

#47 Auto Focus React Input? | React Interview Questions  

itsCodingDoctor
Подписаться 12 тыс.
Просмотров 2,1 тыс.
50% 1

#47 Auto Focus React Input? | React Interview Questions #react #reactjs #reactinterviewquestions #reacthooks #html5
Please checkout below playlists:-
1. DAILY ONE REACT INTERVIEW QUESTION
• Daily React Interview ...
2. MNC INTERVIEW EXPERIENCES
• MNC Interview Experiences
3. TRICKY CSS QUESTIONS/DESIGNS
• Tricky CSS
4. MERN PROJECTS FROM SCRATCH
• MERN Projects
5. REACT IMPORTANT/RANDOM TOPICS
• React Topics
ReactJs Interview
React/Redux Coding Interview
Frontend Interview
javascript interview questions
reactjs interview questions and answers for experienced
advanced reactjs interview questions.
Please subscribe to my channel. Like, share and subsricption = 100% MOTIVATION
I hope you enjoy my channel videos!
Follow On Twitter:- @itscodingdoctor
Instagram:- / itscodingdoctor

Опубликовано:

 

26 июл 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 19   
@pratik9822
@pratik9822 2 года назад
👍👍
@itscodingdoctor
@itscodingdoctor 2 года назад
👍
@silentwalker20111987
@silentwalker20111987 Месяц назад
Try to test on iOS mobile. And this will not work :)
@rotembs
@rotembs 2 года назад
You can use autofocus attribute as well
@itscodingdoctor
@itscodingdoctor 2 года назад
Can you write an example here?
@rotembs
@rotembs 2 года назад
@@itscodingdoctor www.w3schools.com/tags/att_input_autofocus.asp
@hassamulhaq7762
@hassamulhaq7762 2 года назад
@@itscodingdoctor you explained also good because we need to focus using React.
@itscodingdoctor
@itscodingdoctor 2 года назад
Thanks bro for sharing 😊
@hassamulhaq7762
@hassamulhaq7762 2 года назад
How to pass useRef to custom components.
@itscodingdoctor
@itscodingdoctor 2 года назад
Can you tell me what is the use case?
@hassamulhaq7762
@hassamulhaq7762 2 года назад
@@itscodingdoctor I've a custom component and MyInput having a simple HTML input, i add this component in App.js and want to use useRef on MyInput.
@rotembs
@rotembs 2 года назад
@@hassamulhaq7762 Create a new ref on the Parent component: const ref = useRef() and pass it to the child with props like that: ref={ref}
@joeadeleke
@joeadeleke 2 года назад
@@hassamulhaq7762 ref forwarding
@joeadeleke
@joeadeleke 2 года назад
@@rotembs not so easy like that
@alexon2010
@alexon2010 Год назад
The impression I have is that nobody knows or understands how this Fucus React shit works, please it's nothing with this video, it's just that it's very stressful... Nobody uses focus this way they teach, there's still a lot of typeScript... For example I have an Input componet, where I have no idea which is the correct attribute in relation to the type script see -> it's like this in component input -> ref?: any, (BUT IT DOESN'T WORK) when having to consume component input like this -> fnOnChange('email', e.target.value)} /> Does not work
@itscodingdoctor
@itscodingdoctor Год назад
Try to follow exact code
Далее
2DROTS vs WYLSACOM! КУБОК ФИФЕРОВ 1 ТУР
07:25
tRPC, gRPC, GraphQL or REST: when to use what?
10:46
Просмотров 74 тыс.
How to become a Java Jr. Developer in 2024
20:27
Просмотров 68 тыс.
Search Filter in React JS - Filter Through Results
8:53
How to learn react | A react Roadmap
19:18
Просмотров 34 тыс.
Every React 19 Feature Explained in 8 Minutes
7:35
Просмотров 116 тыс.
2DROTS vs WYLSACOM! КУБОК ФИФЕРОВ 1 ТУР
07:25