@afriswap/rate-converter

afriswap crypto to currency rate converter hook

Usage no npm install needed!

<script type="module">
  import afriswapRateConverter from 'https://cdn.skypack.dev/@afriswap/rate-converter';
</script>

README

rate-converter

afriswap crypto to currency rate converter hook

NPM JavaScript Style Guide

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