forked from mirrors/Scribe.js
11 lines
No EOL
309 B
JavaScript
11 lines
No EOL
309 B
JavaScript
import App from './components/App.jsx'
|
|
import React from 'react'
|
|
import MongoDB from './libs/MongoDB'
|
|
import { render } from 'react-dom'
|
|
|
|
const db = new MongoDB();
|
|
|
|
db.init()
|
|
.then(db=>window.db = db)
|
|
.then(()=>db.addCollection('Entry'))
|
|
.then(()=>render(<App />, document.getElementById('app'))); |