Skip to content

Instantly share code, notes, and snippets.

@stevedylandev
Last active April 19, 2022 15:38
Show Gist options
  • Save stevedylandev/f9a8074252fd9541a3f5ed66003ffbf8 to your computer and use it in GitHub Desktop.
Save stevedylandev/f9a8074252fd9541a3f5ed66003ffbf8 to your computer and use it in GitHub Desktop.
Aerial Component
import { useEffect } from "react";
import axios from "axios";
const Aerial = () => {
const getEmissionsData = async () => {
try{
const response = await axios.get("https://aerial.is/_nft/0x2acab3dea77832c09420663b0e1cb386031ba17b")
console.log(response.data)
} catch (error) {
console.log(error)
}
}
useEffect(()=> {
getEmissionsData()
}, [])
return (
<div className="aerial-container">
<h1>Aerial</h1>
</div>
)
}
export default Aerial;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment