1.0.5 • Published 5 years ago

currency-converter-for-all v1.0.5

Weekly downloads
32
License
ISC
Repository
github
Last release
5 years ago

This is package for currency converter

You can convert all currency and cryptocurrency

Author HaykMan95

How to use

import React, { Component } from 'react';
import { Converter } from 'currency-converter-for-all';

class App extends Component {

    state = {
        value: 0
    }

    constructor(props) {
        super(props);
        Converter('AMD', 'rub').then(res => {
            this.setState({value: res});
        });
    }

    render() {
        return (
            <h1>{this.state.value}</h1>
        )
    }
}

export default App;

About

Converter get two parameter from and to

to - is default USD

from and to can have been only short string

currency-converter-for-all

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago