misc_pterodactyl-panel/resources/scripts/index.tsx
2020-07-03 13:55:33 -07:00

16 lines
517 B
TypeScript

import React from 'react';
import ReactDOM from 'react-dom';
import App from '@/components/App';
import './i18n';
import { setConfig } from 'react-hot-loader';
import 'tailwindcss/dist/base.min.css';
// Prevents page reloads while making component changes which
// also avoids triggering constant loading indicators all over
// the place in development.
//
// @see https://github.com/gaearon/react-hot-loader#hook-support
setConfig({ reloadHooks: false });
ReactDOM.render(<App/>, document.getElementById('app'));