Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kirill-dev-pro/solid-pocketbase-hooks
Solid-js hooks for PocketBase
https://github.com/kirill-dev-pro/solid-pocketbase-hooks
Last synced: 23 days ago
JSON representation
Solid-js hooks for PocketBase
- Host: GitHub
- URL: https://github.com/kirill-dev-pro/solid-pocketbase-hooks
- Owner: kirill-dev-pro
- Created: 2023-02-03T19:33:24.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-02-03T19:43:00.000Z (almost 2 years ago)
- Last Synced: 2024-12-06T01:17:29.689Z (about 1 month ago)
- Language: TypeScript
- Size: 4.88 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-pocketbase - Solid-pocketbase-hooks - Pocketbase hooks for Solid.js ![GitHub Repo stars](https://img.shields.io/github/stars/kirill-dev-pro/solid-pocketbase-hooks) (Solid)
README
# solid-pocketbase-hooks
```tsx
import App from './App'
import { render } from 'solid-js/web'
import {PocketBaseProvider, AuthProvider, useRecord, useAuth} from 'solid-pocketbase-hooks'render(
() =>
,
document.getElementById('root')
)const App = () => {
const { user } = useAuth()
const record = useRecord('documents', 'foo')
return You are not logged in}>
{record()}
}
```This project was created using `bun init` in bun v0.5.5. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.