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.
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?
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.
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
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
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
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.
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.
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!
tbh this is the best react tutorial playlist in yt rn ,ill recommend to evryone
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.
Glad you like them!
Good to see you back Pedro. I've been checking my notifications everyday.
Thank you for the support!!
You are making learning react a pleasant experience. Appreciate your content
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!
Thank you alot Pedro!! keep it up!! love what you are doing! leanring so much!
Thanks bro, you came back and posted videos!
Glad to have you back sir
really i like the way you teach. i have learnt many from you. thank you buddy
He's back! Great video Pedro
Posting everyday this week 💪
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?
Best notification of the day❤❤
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
This is awesome my brother ❤
Nice tutorial thanks
Fantastic brother! Thanks a lot!
Thank you brother, video was awesome
Thank you so much for very clear explanation Pedro!
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.
Awesome Pedro!!!
wooooow this is amazing I am just in 10:06 but I can't finish the video before writing a comment thanks a lot😀
great video♥♥♥
Fantastic video very clear thank you
Very good React course, the highest class.
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
Thank You Pedro a lot!!!!
Awesome tutorial very useful thank you
Best custom hooks explained
Next tutorial bro node Js after your all react js tutorial is done . Thank you and Godbless
Hi Pedro... Could you make a video on best libraries to format inputs for ReactJS. Thing like Date/Time Pickers, Money and etc. Thanks
can we use just setState(!state) ?
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
the best pedrito tech
❤️
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
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.
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
@PedroTechnologies could you give a feedback on that? Thanks
Hello Pedro. the link for the exercises files is wrong, btw i love your videos!
I mean you have to click 2 times to go and the project uploaded is not from this video
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.
Restart setCount(initialVal)
Does useQuery depricated at version 4.2.3? Example dont work! Dude where is code for useGetCat example...
i just dont get custom hooks idk why. am i gonna fail as a developer if i completly ignore it lol?
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!
@@PedroTechnologies thank you thats so reassuring
👍👍👍👍👍
so basically custom hook is a regular function but its name started with a capital letter or "use"
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
poggers
I think this is too advanced topic for beginner...