Build a Custom Autocomplete Search Bar with React Hooks
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...
blog.lo-victoria.com15 min read
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()); };