react-coingecko
React library for CoinGecko price data.
Installing
First, install and set up React Query. Then run:
yarn add @sunnyag/react-coingecko
Usage
Within a React Query context, run:
const { prices } = useCoinGecko(["bitcoin", "ethereum", "solana"]);
console.log(prices.solana);