Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/tykoth/ra-data-dexie

Experimental React-Admin data provider using Dexie (IndexedDB)
https://github.com/tykoth/ra-data-dexie

dexie dexiejs indexeddb material-ui ra-admin ra-data-dexie react react-admin

Last synced: 2 months ago
JSON representation

Experimental React-Admin data provider using Dexie (IndexedDB)

Awesome Lists containing this project

README

        

# ra-data-dexie

## Instalation
```sh
npm install --save ra-data-dexie
```
or
```sh
yarn add ra-data-dexie
```

## Usage


```js

import React, { Component } from "react";
import ReactDOM from 'react-dom';
import { Admin, Resource, ListGuesser, ShowGuesser, EditGuesser } from "react-admin";
import dexieDataProviter from 'ra-data-dexie';

const dataProvider = dexieDataProvider(
'DATABASE_NAME',
1, // database version
{
"tableName":"++id,name,text,date,bool"
}
);

class App extends Component {
render() {
return (



);
}
}

ReactDOM.render(, document.getElementById('app'));

```