counter-abuzar
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Introduction

Counter Is JavaScript Library For Counting

Installation

npm install counter-abuzar

Usage

import { useCounter } from "counter-abuzar"

Then

import { useCounter } from "counter-abuzar"
const App = () => {
  const {count,increment,decrement} = useCounter();
  return (
    <div>
      <button onClick={increment}>+</button>
      <h3>{count}</h3>
      <button onClick={decrement}>-</button>
    </div>
  )
}
export default App

Contribute

if you would like to contribute, you are welcome, Clone repo and open pull request.

Dependencies (0)

    Dev Dependencies (7)

    Package Sidebar

    Install

    npm i counter-abuzar

    Weekly Downloads

    2

    Version

    1.0.2

    License

    ISC

    Unpacked Size

    3.82 kB

    Total Files

    11

    Last publish

    Collaborators

    • abuzarkhan1