1.1.1 • Published 4 years ago

@lpsci/hooks v1.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

@lpsci/hooks

A highly performant and extensible react hooks for LPSci Web Dev

NPM npm bundle size (scoped) npm bundle size (scoped version) Libraries.io dependency status for latest release, scoped npm package NPM

Table of Contents

Installation

This library is available through the npm registry.

NPM

$ npm -i @lpsci/hooks

Yarn

$ yarn add @lpsci/hooks

Import

Start using it by importing the library first.

CommonJS

const hooks = require('@lpsci/hooks');

ES6

import { useCounter } from '@lpsci/hooks';

Usage

Create a counter with useCounter

import { useCounter } from '@lpsci/hooks';

/**
 * Set initial value to 5, defaults to 0 when a
 * value is not passed
 */
const counter = useCounter(5)

/**
 * Increments the counter state by 10, defaults to 1 when
 * a value is not passed
 */
counter.increment(10)

counter.count // => 15

Read the docs for more.

Authors

Here is the list of contributors who participated in this project.

Changelog

Changelog

License

MIT

1.1.1

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.4.1

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.3.1

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago