Why you need hooks and project

Why you need hooks and project

Chai aur Code

9 месяцев назад

164,867 Просмотров

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


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

@GauravSharma-bl7nu
@GauravSharma-bl7nu - 05.01.2024 02:56

thanks

Ответить
@user-em1op1qe5i
@user-em1op1qe5i - 04.01.2024 21:43

Thank you so much, Sir.

Ответить
@beastbattlegrnd
@beastbattlegrnd - 04.01.2024 16:24

glad im here

Ответить
@yashrajput6798
@yashrajput6798 - 04.01.2024 15:16

cfbr

Ответить
@RitikKumar-zm2yt
@RitikKumar-zm2yt - 04.01.2024 15:07

good course

Ответить
@naimishdwivedi1307
@naimishdwivedi1307 - 04.01.2024 14:56

You are my inspiration, ideal.

Ответить
@naimishdwivedi1307
@naimishdwivedi1307 - 04.01.2024 14:56

Thank you so much sir❤❤❤

Ответить
@yashrajput6798
@yashrajput6798 - 04.01.2024 14:55

cfbr

Ответить
@Omarfaruk-wq5hl
@Omarfaruk-wq5hl - 04.01.2024 07:56

maza aaya

Ответить
@rahul-java-dev
@rahul-java-dev - 03.01.2024 21:38

Mazaaa aagya Sir.....Pair chhukar pranaam aapko 🙌🙌

Ответить
@motivation_for_me
@motivation_for_me - 03.01.2024 20:42

there is no need for asking only 500 comment this playlist deserve more than a million like and 100k comment

Ответить
@rakeshmanna8949
@rakeshmanna8949 - 03.01.2024 20:33

To prevent remove value after 0 : onClick={() => count !=0 ? setCount((count) =>count-1):setCount(count)}
To prevent add value after 20: onClick={() => count!=20? setCount((count) => count + 1):setCount(count)}

Ответить
@jonsnow5535
@jonsnow5535 - 03.01.2024 18:18

People enjoying (watching Netfix ). Here I am , watching your playlist (after falling in love with your user friendly explanations.)

Ответить
@beditvdo
@beditvdo - 03.01.2024 15:49

Ответить
@user-df4dh9ch5t
@user-df4dh9ch5t - 03.01.2024 14:40

It is good for understanding hooks with project

Ответить
@shubhambandgar3486
@shubhambandgar3486 - 03.01.2024 13:51

❣❣❣❣❣❣❣❣❣❣❣❣❣❣❣❣❣❣❣❣❣❣

Ответить
@Habibur__Rahman
@Habibur__Rahman - 03.01.2024 11:51

Sir , You should teach how to teach .
love the way you teach everything ❤❤❤❤❤❤

Ответить
@LoveIndia3
@LoveIndia3 - 03.01.2024 09:30

Thank you Sir

Ответить
@dEviL_bIsWaJiT
@dEviL_bIsWaJiT - 02.01.2024 23:07

❤💙💛

Ответить
@user-ru8rc7wm4j
@user-ru8rc7wm4j - 02.01.2024 21:02

The best

Ответить
@deepakmishra96
@deepakmishra96 - 02.01.2024 15:20

Assignment:

const addValue = () => {
if (counter <= 19) {
console.log("clicked", counter);
setCounter(counter + 1);
} else {
console.log("Counter value exceeds 20");
}
};

const removeValue = () =>{
if (counter >=1){
console.log("clicked", counter);
setCounter(counter - 1)
}
else {
console.log("Counter value should not be less than 0");
}
};

Ответить
@mukuldeval8479
@mukuldeval8479 - 02.01.2024 14:59

Great sir

Ответить
@swarupdas4114
@swarupdas4114 - 02.01.2024 13:25

Assignment Solution

const increaseCounter = () => {
if(counter <= 19) {
setCounter(counter + 1);
}
}

const decreaseCounter = () => {
if(counter > 0) {
setCounter(counter - 1);
}
}

Ответить
@vixalag
@vixalag - 01.01.2024 23:06

Thanks

Ответить
@animeanime6264
@animeanime6264 - 01.01.2024 22:49

good video

Ответить
@ujalamaurya292
@ujalamaurya292 - 01.01.2024 22:29

chai aur react

Ответить
@pronoyroy5240
@pronoyroy5240 - 01.01.2024 21:56

maza araha hai sir, thanks a ton for such calm ed. videos

Ответить
@user-jq4mg7xe3j
@user-jq4mg7xe3j - 01.01.2024 21:51

Green tea

Ответить
@animeworld-hindi915
@animeworld-hindi915 - 01.01.2024 20:38

here are working code
let [counter, setCounter] = useState(15)
// let counter = 15
const addValue = () => {
// counter = counter + 1;
// setCounter(counter + 1)
if(counter != 20){
setCounter(counter + 1)
}else{
setCounter(counter - 1)
}
}
const removeValue = () => {
// setCounter(counter - 1);
if (counter != 0) {
setCounter(counter - 1)
}else{
setCounter(counter + 1)
}
}

Ответить
@user-us9og9mn3b
@user-us9og9mn3b - 01.01.2024 16:22

thnkss

Ответить
@payalchavhan5204
@payalchavhan5204 - 01.01.2024 08:03

got the concept thank u for explaining in such easy manner

Ответить
@codecrayon9120
@codecrayon9120 - 31.12.2023 14:31

Awesome course bhaiya. I've recommended it to my friends. Also, can you please name that paid company plugin?

Ответить
@user-xm3zz8xi9u
@user-xm3zz8xi9u - 31.12.2023 07:51

cricket

Ответить
@user-xm3zz8xi9u
@user-xm3zz8xi9u - 31.12.2023 07:50

australia

Ответить
@user-xm3zz8xi9u
@user-xm3zz8xi9u - 31.12.2023 07:50

Sir sab samagh aa raha hai

Ответить
@rahultak8945
@rahultak8945 - 30.12.2023 23:22

Thank you sir
Good learning

Ответить
@MSMMunna
@MSMMunna - 30.12.2023 17:10

Bangladesh

Ответить
@sathviksathish4243
@sathviksathish4243 - 30.12.2023 14:14

const addValue =() => {
counter =counter+1
if(counter >= 20 ){
counter =20
alert("You have reached Max")
}
setCounter(counter)
}

const removeValue =() => {
counter =counter-1
if(counter <= 0 ){
counter =0
alert("You have reached Min")
}
setCounter(counter)
}

Ответить
@mustafazeb3750
@mustafazeb3750 - 30.12.2023 12:08

australia

Ответить
@harshyadav6097
@harshyadav6097 - 30.12.2023 08:56

australia ki mkc

Ответить
@talhashabbir8285
@talhashabbir8285 - 30.12.2023 05:27

BEst Of LUcK.

Ответить
@PrashantKumar-rx5rn
@PrashantKumar-rx5rn - 30.12.2023 03:44

example sahi tha bro

Ответить
@RedSpade01
@RedSpade01 - 29.12.2023 23:02

Sir ne target 1000 se 500 kiya, hmne comments 1000 se 2000 kar diiye😂😂😂😂💪💪💪💪

Ответить
@vaibhavverma6813
@vaibhavverma6813 - 29.12.2023 22:35

Smj bhi ara hai aur maja bhi ara hai

Ответить
@shahidmanzoor2414
@shahidmanzoor2414 - 29.12.2023 18:13

Zero to hero😂😂😂

Ответить
@yordeep
@yordeep - 29.12.2023 17:54

Thanks bro

Ответить
@surajmehta7889
@surajmehta7889 - 29.12.2023 10:44

import { useState } from 'react'
import reactLogo from './assets/react.svg'
import viteLogo from '/vite.svg'
import './App.css'

function App() {
const [counter,setCounter]=useState(10)

const addValue=()=> {
if(counter<20)
setCounter(counter+1)
}
const removeValue= ()=> {
if(counter>0)
setCounter(counter-1)

}

return (
<>
<h1>Chai and learning React</h1>
<h3>counter Value:{counter}</h3>
<button
onClick={addValue}
>AddValue</button>
<br/>
<button
onClick={removeValue}
>RemoveValue</button>
</>
)
}

export default App

Ответить
@maheshkamble8121
@maheshkamble8121 - 29.12.2023 10:24

Rohit Sharma Pull Shot

Ответить