React 2021 Custom Hooks with LocalStorage & axios - Episode 18

preview_player
Показать описание
This episode of the Learning React in 2021 Series covers:
- what is a custom hook
- how to build a custom hook
- using LocalStorage in a custom hook
- using axios in a custom hook

Рекомендации по теме
Комментарии
Автор

Great video quality with a great voice, also, your English is impeccable. thanks so much for the effort and may you forever be successful.

mounir
Автор

Thank you Steve, learned a lot from this!

Tommy-evgv
Автор

Why is setList a dependency? Can it ever change?
And same question for the setPeople/Films/Planets. I understand the change to keyword triggering the useEffect, but how can the constant setter functions impact the eseEffect?

sashaikevich
Автор

hello Steve great video, I have one question though how would u store multiple different inputs in local storage, for example if we have two different people with an input field under each. cause i have something similar and when i have for instance tom and john and i input two pieces of data for john it's stored in the local storage but when i now input data for Tom it overwrites the data in local storage even though on the page it shows 2 tags for john and 1 for Tom. but in each of thes cases a refresh makes both of them update to whats in the local storage data eventhough they both had different input data to begin with. Been struggling with this so any help would be appreciated, would really help as well if you had a discord or a way to contact you as im still learning and want to improve.

kevinmesto