react-appwrite-hooks
React hooks for Appwrite. This library is a work-in-progress (as is Appwrite), and was inspired by react-firebase-hooks. Expect bugs, missing functionality, and outdated docs as this project continues to be developed.
Unless stated otherwise, all hooks support realtime capabilities, so you don't have to do any manual refreshing yourself.
The hooks follow this format:
const [value, isLoading, error] = useHook(appwrite, ...)
All hooks take your appwrite instance as their first parameter.
Available Hooks
Contributing
-
Install dependencies with
pnpm i
-
Execute
pnpm run dev
in the root folder and start editing.
Follow these extra instructions if you'd like to test with the provided example project.
-
In the example folder, rename
.env.local.example
to.env.local
, and replace the variables inside of it with variables from your own local Appwrite installation. -
Open up another terminal that is also in the example folder.
-
Install dependencies with
pnpm i
-
Execute
pnpm run dev
and start editing.