ReactJS Course [12] - Custom Hooks Tutorial

  Рет қаралды 29,077

PedroTech

PedroTech

Күн бұрын

Пікірлер: 55
@murshidameen5009
@murshidameen5009 Жыл бұрын
tbh this is the best react tutorial playlist in yt rn ,ill recommend to evryone
@shivamsharma6106
@shivamsharma6106 2 жыл бұрын
Hey Pedro i love the way you are teaching things, as a beginner getting to cool stuff in a way which is very clear and easy to grab. Keep up the good work.
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Glad you like them!
@ishimweisaac1019
@ishimweisaac1019 2 жыл бұрын
Good to see you back Pedro. I've been checking my notifications everyday.
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Thank you for the support!!
@DriveandThrive
@DriveandThrive 2 жыл бұрын
You are making learning react a pleasant experience. Appreciate your content
@olenayevtushok2014
@olenayevtushok2014 2 жыл бұрын
I watched so many videos about custom hooks and only this video helped me understand them a little bit. I succeed with the exercise! Thank you Pedro!
@stn369
@stn369 2 жыл бұрын
Thanks bro, you came back and posted videos!
@martinirungu2381
@martinirungu2381 2 жыл бұрын
Glad to have you back sir
@azaz9344
@azaz9344 Жыл бұрын
wooooow this is amazing I am just in 10:06 but I can't finish the video before writing a comment thanks a lot😀
@richardleungwoogabriel9317
@richardleungwoogabriel9317 2 жыл бұрын
Thank you alot Pedro!! keep it up!! love what you are doing! leanring so much!
@LucasInojosaMendesdaSilva
@LucasInojosaMendesdaSilva 4 ай бұрын
it's very difficult to find such a good explanation of hooks. thanks
@uafkhurram
@uafkhurram Жыл бұрын
really i like the way you teach. i have learnt many from you. thank you buddy
@ThColinPereira
@ThColinPereira 2 жыл бұрын
He's back! Great video Pedro
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
Posting everyday this week 💪
@abdssamad5246
@abdssamad5246 2 жыл бұрын
Best notification of the day❤❤
@beedo987
@beedo987 Жыл бұрын
This is awesome my brother ❤
@vinayjalalpuram6238
@vinayjalalpuram6238 2 жыл бұрын
Awesome Pedro!!!
@k303k
@k303k 2 жыл бұрын
Thank you so much for very clear explanation Pedro!
@sanuyadav-ys3fb
@sanuyadav-ys3fb Жыл бұрын
Fantastic brother! Thanks a lot!
@WillSmith-qt7me
@WillSmith-qt7me 2 жыл бұрын
Very good React course, the highest class.
@easterntornado
@easterntornado Жыл бұрын
Best custom hooks explained
@faizanahmed9304
@faizanahmed9304 2 жыл бұрын
Thank you brother, video was awesome
@eliyahutarab4862
@eliyahutarab4862 2 жыл бұрын
Fantastic video very clear thank you
@vinaypatil8009
@vinaypatil8009 2 жыл бұрын
Nice tutorial thanks
@poojakamble3643
@poojakamble3643 2 жыл бұрын
excercise: import { useState } from "react"; export const useCounter = () => { const [state,setState] =useState(0); const incrementCounter=()=>{ setState(state + 1) } const decrementCounter=()=>{ setState(state-1) } const resetCounter=()=>{ setState(0) } return [state,incrementCounter,decrementCounter,resetCounter] } import React from 'react' import { useCounter } from './useCounter' const Counter = () => { //values coming from custom hook- useCounter hook const [state,incrementCounter,decrementCounter,resetCounter] = useCounter() return ( {state} Increment Decrement Reset ) } export default Counter please let me know in case of any implementation mistake done
@ИннаБогданова-к4щ
@ИннаБогданова-к4щ 2 жыл бұрын
Thank You Pedro a lot!!!!
@abdessamade6995
@abdessamade6995 2 жыл бұрын
great video♥♥♥
@sonamohialdin3376
@sonamohialdin3376 2 жыл бұрын
Awesome tutorial very useful thank you
@Kal-El-gm5pc
@Kal-El-gm5pc Жыл бұрын
I have a question. When exporting as an array and you import where you need it, does the order you follow to import matter, cause for example, if we write the const for your 2nd example as an array, will i need to also follow the order it was exported as ? Cause i wonder how react will know if i alter the names
@eromoseleogbeide4075
@eromoseleogbeide4075 Жыл бұрын
hey pedro i wanted to ask inthe example you used the useQuery hook without the queryClient and queryClient provider but when i tried using it i had problems i dont know if you can clearify on that
@escaladus4860
@escaladus4860 Жыл бұрын
can we use just setState(!state) ?
@MasteryOfGameDev
@MasteryOfGameDev 2 жыл бұрын
a little question for the exercise: Can you explain me why you used inside the increase setCount((prev)=>(prev+1)) and not setCount(count+1) ? ty a lot
@olenayevtushok2014
@olenayevtushok2014 2 жыл бұрын
Hello! As I understand it: if you need a previous value to set a new value, you have to use arrow function. If you don't need the previous value to set a new value, you can just enter the new value. In this case you need to know the previous value of counter, that's why use arrow function.
@whatisthis__95
@whatisthis__95 Жыл бұрын
I have the same question. I did the excercise as you wrote it and it works perfectly. It would be nice to get an answer back
@whatisthis__95
@whatisthis__95 Жыл бұрын
@PedroTechnologies could you give a feedback on that? Thanks
@rodellibed9100
@rodellibed9100 2 жыл бұрын
Next tutorial bro node Js after your all react js tutorial is done . Thank you and Godbless
@Andres_Agudelo0101
@Andres_Agudelo0101 2 жыл бұрын
the best pedrito tech
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
❤️
@Second_Law
@Second_Law 2 жыл бұрын
Hi Pedro, i watched a lot of your tutorial and it really helped me a lot! Thank you for all the content you give us all!! By the way i watched your tutorial about useContext hooks before this, and its seem so similar to me. Did the custom hooks can be used similar to useContext as a global state?
@hardcode6372
@hardcode6372 Жыл бұрын
awesome tutorial will you please make a video on react query+mui where-> data [{from API ->fetch using reactquery}] is display on the basis of => fromDate(date picker (mui)) and ToDate(date picker) and then submit(button) => with validation and show that data in a table i tried to search the internet it is not available please help.thn u.
@andrewandrosow4797
@andrewandrosow4797 7 ай бұрын
In my opinion - there is redundency. Why we can`t use only "Axios" library for these examples? Maybe the author is specialist, but the course for beginners.
@alexdefaro
@alexdefaro 2 жыл бұрын
Hi Pedro... Could you make a video on best libraries to format inputs for ReactJS. Thing like Date/Time Pickers, Money and etc. Thanks
@araarsalan1307
@araarsalan1307 2 жыл бұрын
i just dont get custom hooks idk why. am i gonna fail as a developer if i completly ignore it lol?
@PedroTechnologies
@PedroTechnologies 2 жыл бұрын
It is ok to be confused about topics in the beginning hahaha you can ignore it for now, just like i ignored some topics that got me confused when i was learning it. I mean, you will eventually understand it and use it, but if ignoring it makes you continue progressing, don't be scared of doing so!
@araarsalan1307
@araarsalan1307 2 жыл бұрын
@@PedroTechnologies thank you thats so reassuring
@currojugando6585
@currojugando6585 Жыл бұрын
Hello Pedro. the link for the exercises files is wrong, btw i love your videos!
@currojugando6585
@currojugando6585 Жыл бұрын
I mean you have to click 2 times to go and the project uploaded is not from this video
@zuesbaker
@zuesbaker 2 жыл бұрын
Restart setCount(initialVal)
@andreyokhrimenko2271
@andreyokhrimenko2271 2 жыл бұрын
Does useQuery depricated at version 4.2.3? Example dont work! Dude where is code for useGetCat example...
@bq_wang
@bq_wang 2 жыл бұрын
👍👍👍👍👍
@flowerofash4439
@flowerofash4439 2 жыл бұрын
so basically custom hook is a regular function but its name started with a capital letter or "use"
@fortnitesmash7166
@fortnitesmash7166 2 жыл бұрын
But it's a lot difficult to use normal function from other module. It's harder and complicated to because of its value that can't be accessible
@tonyhong2443
@tonyhong2443 2 жыл бұрын
poggers
@vityachess
@vityachess Жыл бұрын
I think this is too advanced topic for beginner...
ReactJS Course [13] - Typescript | React Type Safety
27:17
PedroTech
Рет қаралды 26 М.
Custom Hooks in React (Design Patterns)
12:56
Cosden Solutions
Рет қаралды 60 М.
Леон киллер и Оля Полякова 😹
00:42
Канал Смеха
Рет қаралды 4,7 МЛН
Learn Custom Hooks In 10 Minutes
9:38
Web Dev Simplified
Рет қаралды 261 М.
ReactJS Course [9] - UseContext Hook | State Management
21:10
PedroTech
Рет қаралды 51 М.
ReactJS Course [6] - Component Lifecycle | UseEffect Tutorial
19:24
Custom hooks in react | currency Project
52:32
Hitesh Choudhary
Рет қаралды 22 М.
Every React Concept Explained in 12 Minutes
11:53
Code Bootcamp
Рет қаралды 944 М.
ALL React Hooks Explained in 12 Minutes
12:21
Code Bootcamp
Рет қаралды 190 М.