Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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.