useCloudState logo

useCloudState

useState but it's automatically saved to the cloud.

Authenticate

Sign in with Github to create and manage your state keys. You need these to connect useCloudState to the cloud.

Manage Keys

Please login first to create and manage your state keys.

Install Library

Example screenshot of installation

Use useCloudState

useCloudState has the same API as useState except there is a required first parameter for your state key, the optional initial value becomes the second parameter.

Example screenshot of using the hook

Support us so we don't go broke.

It costs a lot to support all of these state end points. If you have gotten some value out of this project please consider supporting us so we can keep it running indefinititely. Any and all support is much appreciated. ❤️