add DatabaseProvider
This commit is contained in:
parent
8c71a9a945
commit
4987d8057d
|
@ -1,8 +1,11 @@
|
|||
import React from 'react';
|
||||
import { render } from 'react-dom';
|
||||
import DatabaseProvider from '@nozbe/watermelondb/DatabaseProvider';
|
||||
import database from './db';
|
||||
import App from './dapp';
|
||||
|
||||
render(
|
||||
<App />,
|
||||
document.getElementById('app')
|
||||
<DatabaseProvider database={database}>
|
||||
<App />
|
||||
</DatabaseProvider>, document.getElementById('app')
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue