@ajeamme/use-message-state
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Why ?

I made this library to helps when creating React application embedded in non-React pages.

Some state need to be connected when we are not able to create a global context.

How to use

Just use it like useState :

const [firstname, setFirstname] = useMessageState('firstname', 'joe')

First argument is canal name, second one is default state value.

Readme

Keywords

none

Package Sidebar

Install

npm i @ajeamme/use-message-state

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

11.6 kB

Total Files

9

Last publish

Collaborators

  • jinga