Search posts, tags, users, and pages
Victoria Lo
A nerd in books, tea, games and software.
Hello friends! I am back with another technical article for today's 6th article of the #2Articles1Week Challenge Series by Hashnode! First, I apologize for the absurdly long title. I just need to include all the juice in this article... I hope all o...
In a situation where am not fetching data in the network, but fetching data from my local data array in my app (eg './contactData.js'). How do I change the code below to get the data
const fetchData = async () => { const res = await fetch('api.opendota.com/api/heroes&); const json = await res.json(); setData(json); setHeroes(json.slice()); };
Benjamin Ik
Frontend Developer | UI/Ux designer
Justin Cole
Thanks ๐ this was a great example. I wonder if I could set the placeholder in the search bar to update too.
Rana Emad
Software Engineer
Amazing job! I love your writing style and thanks for the shout-out, Victoria Lo!
Thanks! And your article is amazing too! I was inspired from you :)
Edidiong Asikpo (Didi)
Senior Developer Advocate at Ambassador Labs
I love this Victoria Lo. Thanks for sharing.
Thanks! It was fun building this mini project too!
Bolaji Ayodeji
Software Engineer, Teacher, and Developer Advocate.
Amazing read! Thanks for sharing.
Thank you! I'm glad you enjoyed it!
Steffy Lo
Great article! Glad my article helped you :)
Yup it did! Thanks!
In a situation where am not fetching data in the network, but fetching data from my local data array in my app (eg './contactData.js'). How do I change the code below to get the data
const fetchData = async () => { const res = await fetch('api.opendota.com/api/heroes&); const json = await res.json(); setData(json); setHeroes(json.slice()); };