Files
nebula.js/commands/serve/web/eDev.jsx
Christoffer Åström 86886407bd chore: cleanup (#167)
Remove the `.eslintrc.json` in `web`
2019-11-08 13:27:37 +01:00

17 lines
370 B
JavaScript

import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
import { openApp, params, info } from './connect';
if (!params.app) {
location.href = location.origin; //eslint-disable-line
}
info.then($ =>
openApp(params.app).then(app => {
ReactDOM.render(<App app={app} info={$} />, document.querySelector('#app'));
})
);