---
title: "Benjamin Ik (@wiredmatrix) | Hashnode"
description: "Frontend Developer | UI/Ux designer. Read the latest articles by Benjamin Ik on Hashnode."
url: "https://hashnode.com/@wiredmatrix"
---

@wiredmatrix

# Benjamin Ik

@wiredmatrix · Joined April 2021

Frontend Developer | UI/Ux designer

## Comments

[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('https://api.opendota.com/api/heroes'); const json = await res.json(); setData(json); setHeroes(json.slice()); };](https://hashnode.com/posts/build-a-custom-autocomplete-search-bar-with-react-hooks/5f1a192a3535f04d3955147f/comment/607b8fc8eb2bd30d2d2269ef)

Comment · Article · Apr 18, 2021 · [Build a Custom Autocomplete Search Bar with React Hooks](https://hashnode.com/posts/build-a-custom-autocomplete-search-bar-with-react-hooks/5f1a192a3535f04d3955147f)
