Customisable currency exchange React widget for https://openexchangerates.org/
Amazing demo
yarn add -D react-exchange-widget
or
npm install --save-dev react-exchange-widget
import React from 'react';
import ExchangeWidget from 'react-exchange-widget';
const serviceApiConfig = {
appID: 'you-app-id-open-exchange-rates',
};
/../
render() {
return (
<div>
<ExchangeWidget serviceApiConfig={serviceApiConfig} />
</div>
);
}
Initial pair
Initial value
Your AppID in https://openexchangerates.org/
Enable auto sync of currency rate
Synchronization interval in milliseconds
Object to configure a custom theme.