mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-02 07:06:41 +03:00
24 lines
487 B
JavaScript
24 lines
487 B
JavaScript
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
import { Root } from './js/components/root.js';
|
|
import { api } from './js/api.js';
|
|
import Channel from './js/channel';
|
|
|
|
import './css/indigo-static.css';
|
|
import './css/fonts.css';
|
|
import './css/custom.css';
|
|
|
|
// rebuild x3
|
|
|
|
const channel = new Channel();
|
|
api.setChannel(window.ship, channel);
|
|
|
|
|
|
if (module.hot) {
|
|
module.hot.accept()
|
|
}
|
|
|
|
ReactDOM.render((
|
|
<Root channel={channel}/>
|
|
), document.querySelectorAll("#root")[0]);
|