Skip to content

Instantly share code, notes, and snippets.

Avatar

Bert Catsburg BertCatsburg

View GitHub Profile
View CryptoChecker.js
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