Skip to content

Instantly share code, notes, and snippets.

View BertCatsburg's full-sized avatar

Bert Catsburg BertCatsburg

View GitHub Profile
import React, {useState, useEffect} from 'react'
import {Dropdown} from 'semantic-ui-react'
const coinAPIKey = process.env.REACT_APP_COIN_API_KEY;
const CryptoChecker = () => {
const [coinName, setCoinName] = useState(null);
const useCryptoFetcher = (coinName) => { // Changed: added coinName as a param