cloudkitty
Version:
Painless CloudKit on Web
28 lines (20 loc) • 460 B
Markdown
and Context Provider that make it easy to interact with Apple CloudKit.
```tsx
import CloudKittyProvider from "cloudkitty";
// ...
<CloudKittyProvider
token={"<Your CloudKit Token>"}
environment="development"
containerIdentifier="Your Container Name"
>
<App />
</CloudKittyProvider>
```
```ts
import { useCloudKitty } from "cloudkitty";
// ...
const { loading, error, container, user } = useCloudKitty();
```
Hook