https://github.com/juliangruber/preact-level-list
Live updating leveldb list component for preact
https://github.com/juliangruber/preact-level-list
Last synced: 26 days ago
JSON representation
Live updating leveldb list component for preact
- Host: GitHub
- URL: https://github.com/juliangruber/preact-level-list
- Owner: juliangruber
- Archived: true
- Created: 2017-10-15T14:46:50.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-15T14:47:57.000Z (over 7 years ago)
- Last Synced: 2025-03-21T13:19:29.075Z (about 1 month ago)
- Language: JavaScript
- Size: 231 KB
- Stars: 4
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-preact - Preact Level List - Live updating leveldb list component for Preact. (Uncategorized / Uncategorized)
README
# preact-level-list
Live updating [leveldb](https://leveldb.org) list component for [preact](https://preactjs.com/)!
## Example
```js
import { h, render, Component } from 'preact'
import level from 'level'
import { List } from 'preact-level-list'const db = level('/tmp/preact-level-list')
class Example extends Component {
render () {
return (
- {value} }
/>
)
}
}
```
Now the `` component will always reflect the values you have stored in your database with `prefix`.
Find a full example in [/example](example):
```bash
$ npm install
$ npm run rebuild
$ npm start
```

## Installation
```bash
$ npm install preact-level-list
```
## API
### ``
## License
MIT