@afriswap/rate-converter
v2.6.0
Published
afriswap crypto to currency rate converter hook
Downloads
126
Readme
rate-converter
afriswap crypto to currency rate converter hook
Install
npm install --save @afriswap/rate-converter
Usage
import React from 'react'
import { useRateConverter, SwapCalculator } from '@afriswap/rate-converter'
import "@afriswap/rate-converter/dist/index.css"
const App = () => {
function handleSubmit(value){
console.log(value);
}
function handleChange(transactionType){
console.log(transactionType);
}
return <SwapCalculator onSubmit={handleSubmit} onChange={handleChange} />
}
export default App
License
MIT © BlockAfric