-
use CoinGecko API
-
What is NPM Axios? Axios is a promise based HTTP client for the browser and Node. js. Axios makes it easy to send asynchronous HTTP requests to REST endpoints and perform CRUD operations.
this is allows us to get the from api and it's supper similar to fetch but it's just way to writ the code. npm install axios
What is React Hooks? Hooks are a new addition in React 16.8. They let you use state and other React features without writing a class. Hooks are backwards-compatible. This page provides an overview of Hooks for experienced React users.
What are sideEffect? side effect are basically anything that affect something outside of the scope of the current function that's being executed, this include: *API request to backend service * Calls to authentication service *Error tracking calls to sentry
import React, {useState, useEffect} from 'react'; =>{useState, useEffect} this is react hook