Thank you, Will! We're glad you found it helpful :)
@Pastorsun3 жыл бұрын
Hi Cheng
@Vivi-Price2 жыл бұрын
This was very helpful. Thank you !!
@brangja48152 жыл бұрын
Exactly what I need. autoFocus attribute only works on load but not when state changes.
@maidedponce78682 жыл бұрын
Great video! Saludos desde México🇲🇽
@marceloveron23932 жыл бұрын
awesome tutorial +10000
@abhisekpaul2 жыл бұрын
How do I revert the autofocus from down to up
@goquaoquetoi9513 Жыл бұрын
Mobile IOS not working
@tingchunchou83294 жыл бұрын
🥺👍🏻
@supremoluminary4 жыл бұрын
So you can use React to complicate what can otherwise be done in the DOM, transpiling your code to HTML with proprietary transpiler rules.
@Codementor4 жыл бұрын
Hi Garett, thanks for the feedback. Yes, you're right, manipulating the DOM is one alternative to using React or other frontend Library and frameworks.
@supremoluminary4 жыл бұрын
@@Codementor Is manipulating the DOM an alternative to using react? I don’t think it is. The DOM is manipulated regardless of whether or not you use react or another transpiler or abstraction. The DOM has standard expected behavior. It’s not tied to an interdependent, ever-shifting base. I think it’s better to learn the DOM than to learn react.
@Pastorsun3 жыл бұрын
Hi Garrett
@brangja48152 жыл бұрын
I know but, is there any other way to autofocus input field on state change without touching the DOM directly.
@supremoluminary2 жыл бұрын
@@brangja4815 Do you want to autofocus an input or do you want to focus it? What is the state change event you're alluding to? Figure out what you want and specify it using precise language and standard terms. HTML and the DOM are the basis for web apps. Why eschew using them directly?