Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/resources/scripts/index.tsx
7458 views
1
import React from 'react';
2
import ReactDOM from 'react-dom';
3
import App from '@/components/App';
4
import { setConfig } from 'react-hot-loader';
5
6
// Enable language support.
7
import './i18n';
8
9
// Prevents page reloads while making component changes which
10
// also avoids triggering constant loading indicators all over
11
// the place in development.
12
//
13
// @see https://github.com/gaearon/react-hot-loader#hook-support
14
setConfig({ reloadHooks: false });
15
16
ReactDOM.render(<App />, document.getElementById('app'));
17
18