This is a starter pack for a React forex app. It is meant as a practice assignment for someone learning the basics of React. It contains a set of tests that checks for the following functionalities:
- A span with the id
rate
that displays an initial USD to CAD rate of1.29
- Two input fields with the names
USD
andCAD
respectively. - Typing whole numbers into either of the two inputs triggers the other input to update with the equivalent rate.
- App updates the rate after initial mounting using the API endpoint 'https://api.fixer.io/latest?base=USD&symbols=CAD'
To begin:
- clone the app to the local drive:
git clone https://github.com/da-liu/forex-starter.git
- install dependencies:
cd forex-starter && npm install
- start app
npm start
in one terminal, and watch for test in another terminalnpm test
- edit
App.js
to build the required features and pass all the tests - submit your app to TODO: email or slack channel to get an example solution