61 likes
·
14.6K reads
10 comments
Amazing read! Thanks for sharing.
Thank you! I'm glad you enjoyed it!
I love this Victoria Lo. Thanks for sharing.
Thanks! It was fun building this mini project too!
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 :)
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()); };
Thanks 👍 this was a great example. I wonder if I could set the placeholder in the search bar to update too.