https://github.com/sldeaals/currency-api-exercise
Testing your basic knowledge
https://github.com/sldeaals/currency-api-exercise
front-end frontend react reactjs
Last synced: about 1 month ago
JSON representation
Testing your basic knowledge
- Host: GitHub
- URL: https://github.com/sldeaals/currency-api-exercise
- Owner: sldeaals
- Created: 2021-05-27T07:08:22.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-01-19T05:12:09.000Z (over 2 years ago)
- Last Synced: 2025-02-21T18:30:31.617Z (over 1 year ago)
- Topics: front-end, frontend, react, reactjs
- Language: HTML
- Homepage:
- Size: 172 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Setup
```bash
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:
```js
https://v6.exchangerate-api.com/v6/71d0d9072451bae18657a9ec/latest/{CURRENCY_CODE}
```
```js
// App.js
```
- Create a dropdown with the currencies EUR, USD, BRL, PEN, and ARS (put USD by default)
```js
// 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.
```json
1. USD: 1.1745
2. CAD: 1.3331
```
- If the request is loading, you should display **"Loading..."**.