1.0.2 • Published 2 years ago

@ajeamme/use-message-state v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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.