Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juliangruber/preact-level-list
Live updating leveldb list component for preact
https://github.com/juliangruber/preact-level-list
Last synced: 2 months 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 (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-15T14:47:57.000Z (about 7 years ago)
- Last Synced: 2024-10-12T05:24:45.305Z (3 months ago)
- Language: JavaScript
- Size: 231 KB
- Stars: 4
- Watchers: 3
- 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
```
![screenshot](screenshot.png)
## Installation
```bash
$ npm install preact-level-list
```
## API
### ``
## License
MIT