Skip to content

sldeaals/currency-api-exercise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Setup

git clone https://github.com/sldeaals/currency-api-exercise.git && cd currency-api-exercise && npm install && npm run start

Create a component that consumes a currency exchange API based on a currency selected in a Dropdown.

Resources:

Currency Exchange API:

https://v6.exchangerate-api.com/v6/71d0d9072451bae18657a9ec/latest/{CURRENCY_CODE}

// App.js
  • Create a dropdown with the currencies EUR, USD, BRL, PEN, and ARS (put USD by default)

// ExchangeRates.js
  • Fetch the exchange rates based on the selected currency and display them using a list with the following format

currency_code: value

e.g.
1. USD: 1.1745
2. CAD: 1.3331
  • If the request is loading, you should display "Loading...".

About

Testing your basic knowledge

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published