1.0.5 • Published 2 months ago

@dhananjaywarade/uida v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
2 months ago

UseCounter Hook

Creating a button component in React is made simple with this approach. You can also use hooks like useCounter to easily manage increment and decrement operations.

Demo

Demo GIF

Installation

Install my-project with npm

 npm i @dhananjaywarade/uida

Usage/Examples

import { useCounter,Button} from "@dhananjaywarade/uida";


function App() {
  const {count,increment,decerement} = useCounter();

  return (
    <>
    <Button onclick={increment}>+</Button>
     <h1>{count}</h1>
     <Button onclick={decerement}>-</Button>
    </>
  )
}

export default App

Authors

1.0.5

2 months ago

1.0.4

2 months ago

1.0.3

2 months ago

1.0.2

2 months ago

1.0.1

2 months ago

1.0.0

2 months ago