React tutorial in Hindi #15 Get Input box value
HTML-код
- Опубликовано: 1 окт 2024
- in this react js tutorial for beginners series we learn how to use get value from input box with functional component in react js. This video is made by anil Sidhu in the Hindi Language.
Playlist for complete React series in Hindi
link • React tutorial for beg...
code github.com/ani...
Props with class Component
What are props
Use of props
Example with class component
Update props on Button click
Interview Question
Join on Insta @php.step.by.step
Thanks buddy, much respect from 🇵🇰
Welcome
Bhai saheb app jesa explain karte wesa koi explain nhi kar sakta mene 1-2 week code-with hari -huri ke video me kharab kar diye tab jakar apki video mili h ..... Ab m react achchi tarah se kar luga yrr
exactly
This is Best Reactjs tutorial so far .
Hi anil, thanks for this amazing easy understandable series. But at my end in getdata function val is throwing error when i type in text box that is "cannot read properties of undefined reading val". How can i solve it?
Very meaningful and practical examples. Tysm sir. React js is very well explained in this channel. 🙂
Sir jaldi upload kro video ...series complete as soon as
Bhai daily 2 video hi bna pata hu. Diwali pr kafi video ayegi tb holidays hoge.. abi office b hota h na so
But arrow function kab use krna hai kab nahi krna?
Jaise tumne input pai onChange par arrow function use nahi kra, main krke dhaka but kam nahi kr raha, Or Button onClick pai kra. To kab krna hai kab nahi krna hai?🤔🤔
after one click its not waiting for another click its printing the data .like i have written some data and clicked the button and then when again i have written it starts to print directly
Can we pass Function as a Props?????????
yes
M learning Alot from your vedio sir .Thank Alot Anil Bhai
Sir ye print wala condition thoda kam samgh aaya
Sir please help I want to learn react.
what is target.value ?
Sir your way of teaching is amazing!
My one like complete 500 likes
react with laravel project please....and jwt token or passport video please
Soon, just after basic i will start project
@@codestepbystep thanks bro....do you have jwt token or laravel passport video
Yes, but not with react
@@codestepbystep i need with laravel...can you give me the link
@@shocchosolutions6275 ruclips.net/video/5411bR2jtM4/видео.html
jo data hum input kar rahe he then click karne par print ho raha hai but usi doran type or kar rahe hai input me to data woh bhi print ho raha hai kaise?.
bro, put setPrint(false) inside getdata function
🎉
Thanks ra babu
Thank you
Sir ,3rd method me jo button click karne pe webpage pe Jo input value show horhi use react me hi useState use karke hi koi or method se krskte h kya ??
Best react tutorial ever in hindi.The way you teach is very simple and easy.thanks
Console.log ke upar console.clear() use kar ke screen clean rakha sakate he
&very niche theching
hello anil sir,
react me previous component ya file ko htay bina kese ny component prr kam kre , jese ki html me agar mujhe kam krna hota tha to ak file ko kisi bhi nam se save krwa deta tha or aage ny kam ke liye ny file bna deta tha , prr react me smjh nhi aa rha new component bnane ke liye yaa new file bnane ke liye APP.js me to change krna hoga na
Thanks for this bro
are lekn ye "val" to define hi nahi hua ar "target" and "value" kya cheez hai??
sir i have one question, multiple input box hai or API se data fetch karke show karna hai yadi database mai data hai to ni to enter karke submit karke data post karna hai wo kese karenge.
I am unable to use app.js file means I am creating text box,props data nothing is visible in the chrome page
Can someone guide me with this
class component bnaya hai?
Kya ham props only read kar sakte h ya unki value ko update bhi kar sakte h?
jb input mai type kar ke print karty hain to input empty auto empty honi chahey??
YE IF ELSE KESE USE KIYA SAMJH NHI AAYA generally if(conditon){.............} else{..........} ese use krte hai
aapne ? : ye kya use kiya??
Ternary Operator
@@deardoll hn dear doll aa gaya 😅😀
@@deardoll tum bhi react seekh rhi
jb input mai type kar ke print karty hain to input empty auto empty honi chahey??
boht acha explain krty hain app anil sir, button ki bjay kya asy kr skty hain ky jasy hi likh ker is textbox sy cursor nikly yani lostfocuse ho tb textbox ka data print ho jay ? ager han to kasy plz batay ga zaroor
It is possible using onBlur event listener:
import React, {useState} from 'react';
import './App.css';
function App() {
const [data, setData] = useState("Raja");
const [print, setPrint] = useState(false);
function getVal(val) {
setData(val.target.value);
}
function handleBlur() {
setPrint(true);
}
return (
{
print ? {data} :
}
{/* Remove the button element */}
);
}
export default App;
Is booliean works like a toggle in React?
One of the best series on youtube for react in my perspective
who are you ?
Love u from 🇵🇰
print is like a hide show
thank you for creating and sharing this video
Thank You bhai...🙂🥰🥰
function component
m onClick event pr 2 function ko kese call kre
1 function bnao usme 2nd function call kr lo
super
You shuld start posting react projects too
Nice Series
Lazy loading video with router
Okay, soon
@@codestepbystep ok bhai waiting for your vedio
bro why did you nnot use extension.ur teaching method is just like stone age...but i still like ur vedios..for entension i follw herry sir video
I am not able to find the insta account
code.steps