IceMinecraftTheme/resources/scripts/index.tsx

18 lines
540 B
TypeScript
Raw Normal View History

2022-12-16 17:47:24 +00:00
import React from 'react';
import ReactDOM from 'react-dom';
import App from '@/components/App';
import { setConfig } from 'react-hot-loader';
import './IceMinecraftTheme.css';
// Enable language support.
import './i18n';
// 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'));