Тёмный

Exercises: Custom Hooks - React In Depth 

Tech with Nader
Подписаться 13 тыс.
Просмотров 1,2 тыс.
50% 1

Опубликовано:

 

14 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 17   
@PatrickBateman_speaks
@PatrickBateman_speaks Год назад
Hats off to your consistency!!
@TechWithNader
@TechWithNader Год назад
Thanks Patrick!
@ruskasielu6261
@ruskasielu6261 8 месяцев назад
I would like if you could show us the result you expect at the beginning of each exercice (not the code, just the app). Sometimes I'm not sure of what we are supposed to do until I see the solution, and I realise I could have done it alone if I had known. Besides that, absolutely stellar content, the best react course I've seen online !
@TechWithNader
@TechWithNader 8 месяцев назад
Thanks for the recommendation! I'll try to find a way to incorporate this in future videos 😃
@ruskasielu6261
@ruskasielu6261 8 месяцев назад
@@TechWithNader great to hear ! Also are you planning to do other JS-related courses like Express or typescript at some point?
@TechWithNader
@TechWithNader 8 месяцев назад
@@ruskasielu6261 I have the REST API course in progress right now using Deno (TS/JS) 🦕
@ruskasielu6261
@ruskasielu6261 8 месяцев назад
@@TechWithNader i did see it, but I was a bit confused when it comes to the choice of deno instead of Node (as it's a lot more popular). Will any of these skills transfer to regular Nodejs?
@TechWithNader
@TechWithNader 8 месяцев назад
@@ruskasielu6261 Yup! I chose Deno because it uses all the standard Web APIs and they transfer to anything that uses them 😊 Also the main concepts apply to any style of rest like API 🥳
@aliajellu
@aliajellu Месяц назад
Thanks a lot @TechWithNader! Regarding Ex 2, I found a simpler solution which seems to work. Are there any problems with this approach? const [state, setState] = useState(initialState) function setStateWithLogging(newState) { let resultingState resultingState = typeof newState === "function" ? newState(state) : newState setState(resultingState) console.log("state has changed from " + state + " to " + resultingState) } return [state, setStateWithLogging]
@giafra95
@giafra95 11 месяцев назад
Hello @TechWithNader , many thanks for the extremely helpful video. I got a question for you regarding Exercise 3 (useQuery custom hook): isn't it a React anti-pattern to fetch outside of a useEffect hook? I'm referring to the function fetcher you coded. Technically, the network request as you coded the hook is not placed inside a useEffect hook. Should this be a point of concern ? Thanks again.
@TechWithNader
@TechWithNader 11 месяцев назад
Great question! You are correct that you should generally not fetch data outside a use effect (since it’s a side effect). In this case we still abide by that rule since inside the hook the fetch code is contained inside the use effect. It just looks like we are using it outside in the component we are using the hook in, but picture copying and pasting the hook code and you’ll see it’s still all contained in the effect and state calls as you’d expect 😊 Hope that makes sense!
@Haydarnt8
@Haydarnt8 Год назад
nice job 👊🏿
@shehanmaduwantha4795
@shehanmaduwantha4795 Год назад
@brajagopalmukherjee1588
@brajagopalmukherjee1588 Год назад
Fire 🔥
@lowellbowers8328
@lowellbowers8328 Год назад
'Promosm' 🎉
Далее
Project: React Router - React In Depth
1:50:59
Просмотров 2,1 тыс.
Custom Hooks - React In Depth
36:29
Просмотров 1,1 тыс.
Deno Environment Setup - Rest APIs In Depth
33:59
Просмотров 1,8 тыс.
DNS, IP Addresses & Ports - Rest APIs In Depth
32:16
Просмотров 1,8 тыс.
Context API in react | get the concept
29:00
Просмотров 61 тыс.
Laravel vs Rails for Javascript developers
19:50
Просмотров 5 тыс.
ReactJS Course [12] - Custom Hooks Tutorial
22:54
Просмотров 27 тыс.
GET Requests - Rest APIs In Depth
1:09:07
Просмотров 1,3 тыс.
Custom Hooks in React (Design Patterns)
12:56
Просмотров 47 тыс.