@sunnyag/react-coingecko
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

react-coingecko

npm License Build Status Contributors

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);

/@sunnyag/react-coingecko/

    Package Sidebar

    Install

    npm i @sunnyag/react-coingecko

    Homepage

    sunny.ag

    Weekly Downloads

    20

    Version

    3.0.0

    License

    LGPL-3.0

    Unpacked Size

    29.2 kB

    Total Files

    22

    Last publish

    Collaborators

    • suryak