I'm doing a NFT page and I'm trying to use some img from an api but it seems it returns the file image itself so how can I transform or get that path to give me the actual img.
Here is my code:
const [userData, setUserData] = useState([])
async function fetchData() {
const { data } = await axios.get('https://us-central1-nft-cloud-functions.cloudfunctions.net/hotCollections')
setUserData(data)
console.log(data)
}
useEffect(() => {
fetchData()
}, [])
I'm searching but I havent found a solution yet.