/currency-exchange

Currency exchange package written in React. Automatically updates currency rates on a daily basis

Primary LanguageJavaScript

currency-exchange

A small javascript component showing currency exchange rates. Currently there are two bases supported: EUR and USD. The component uses a free api to deliver the rates, so they are updated on a daily basis. It comes bundled so all you need to do is:

Usage

Require the module:

  let currency_board = require('currency_exchange_board')

or

  import CurrencyExchangeBoard from 'currency_exchange_board'

Then:

ReactDom.render(<CurrencyExchangeBoard />, document.getElementById('currency'))

Of course you need to have react.

If you want to see how it looks build the sample: cd /node_modules/currency_exchange_board run npm run build_dev run npm run start_dev