Search code examples
javascripthtmlapicryptocurrencycoingecko

How to get API data to a separate HTML page


I'm building a project using coingecko's cryptocurrency api. Currently I have a chart displaying statistics 1-100 of the highest ranking coins. What is the best way to click on the individual coins and load an information page for that specific currency, without backend coding. Any suggestions?


Solution

  • If you are using React, you can use react-router and the useParams() hooks:

    https://reactrouter.com/web/example/url-params