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...

Markdown supported · ⌘↵ to post
Thanks 👍 this was a great example. I wonder if I could set the placeholder in the search bar to update too.
Benjamin Ik
Frontend Developer | UI/Ux designer
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()); };