Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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