aigbojie-discount

1.0.2 • Public • Published

aigbojie-discount is a package that helps to calculate discount of price by and it is easy to use.

installation

using npm :
npm i aigbojie-discount

usage in reactjs

it takes two arguements the first is the PRICE and the second is the PERCENTAGE DISCOUNT

import {useDiscount} from "aigbojie-discount";


export default function App(){
  const price=300
  const percentage_discount=20
  const discount=useDiscount(price,percentage_discount);
  console.log(discount)

  return(
    <div>{discount}</div>
  )

}

Readme

Keywords

Package Sidebar

Install

npm i aigbojie-discount

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

1.36 kB

Total Files

4

Last publish

Collaborators

  • geniuska