Ad

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?

Ad

Answer

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

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

Ad
source: stackoverflow.com
Ad