// onChange = Event handler used primarily with form elements. // ex. , , , // Triggers a function every time the value of the input changes. import React, {useState} from 'react'; function MyComponent(){ const [name, setName] = useState("Guest"); const [quantity, setQuantity] = useState(1); const [comment, setComment] = useState(""); const [payment, setPayment] = useState(""); const [shipping, setShipping] = useState("Delivery"); function handleNameChange(event){ setName(event.target.value); } function handleQuantityChange(event){ setQuantity(event.target.value); } function handleCommentChange(event){ setComment(event.target.value); } function handlePaymentChange(event){ setPayment(event.target.value); } function handleShippingChange(event){ setShipping(event.target.value); } return (
// onChange = Event handler used primarily with form elements.
// ex. , , ,
// Triggers a function every time the value of the input changes.
import React, {useState} from 'react';
function MyComponent(){
const [name, setName] = useState("Guest");
const [quantity, setQuantity] = useState(1);
const [comment, setComment] = useState("");
const [payment, setPayment] = useState("");
const [shipping, setShipping] = useState("Delivery");
function handleNameChange(event){
setName(event.target.value);
}
function handleQuantityChange(event){
setQuantity(event.target.value);
}
function handleCommentChange(event){
setComment(event.target.value);
}
function handlePaymentChange(event){
setPayment(event.target.value);
}
function handleShippingChange(event){
setShipping(event.target.value);
}
return (
Name: {name}
Quantity: {quantity}
Comment: {comment}
Select an option
Visa
Mastercard
Giftcard
Payment: {payment}
Pick Up
Delivery
Shipping: {shipping}
);
}
export default MyComponent
Bro code I really appreciate you
But I want you to start laravel php with mysql project from scratch please
Asking the second time man
Thank you .
Please make redux and context API tutorials in react
please complete this series,,,, ,your content is awesome
thanks, even if you dont post much about react, i understand your main content is javascript now ❤
Can you please make a full course on REACT....Please Please
I have learned everything from you can you please make that
Your explanation is great brother❤
my teacher is can't be teach us after paying like u teach us nice explaination bro
Thanks man! really really helpful, greatings from Colombia
React is so easy with you 😁
Very very great playlist, Thank you Bro :). I Pray for U.
you have no idea how much i love you
good bro
amazing video thank u so much for explaining it so goooood
Thanks
Thank you so much
Thank you bro
yo oyo yo oyo yooooooo
the best bro
You're legend
Great as usual. Thanks.
Thanks bro!
You forget checkbox thank you mach bro
Could you make a video on Java Modules? They really confuse me and I can't find any good videos about it.
React helps you understand html better
Bro where did you get your Chinese from
Will we get a Redux tutorial? dear Bro?
Noice
1000th view i think
PLEAAAAAASE make a Django course . specially backend
😂😂😂😂😂
please write the code on comment
Do you have any Instagram acc?