1.0.2 • Published 1 year ago
counter-abuzar v1.0.2
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.