1.2.2 • Published 4 years ago

bjork_usecookie v1.2.2

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

What is this?

A React hook used for managing state and cookies simultaneously, effortlessly.

Install

Use npm to install bjork_useCookie or copy the code manually form github.

> npm i bjork_useCookie

Usage

Utilizes and, therefor, functions like Reacts useState. The difference being that setState takes a second, optional, param options that configures how the cookie is packaged. For more information checkout the function set at the dependancy bjork_cookie.

> import useCookie from 'bjork_usecookie'
>
> const [ state, setState ] = useCookie(_default_)
> setState(value, options?)

Contribution

Pull requests are welcome. For any considerable changes, please open an issue first to discuss what you would like to change.

Licence

MIT

1.2.0

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago