You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
566 B
25 lines
566 B
/// <reference types="react/experimental" />
|
|
/// <reference types="react-dom/experimental" />
|
|
|
|
import './index.css';
|
|
|
|
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
|
|
import App from './App';
|
|
|
|
const element = document.getElementById('root');
|
|
|
|
if (element) {
|
|
ReactDOM.createRoot(element).render(
|
|
<React.StrictMode>
|
|
<App />
|
|
</React.StrictMode>,
|
|
);
|
|
}
|
|
|
|
// Hot Module Replacement (HMR) - Remove this snippet to remove HMR.
|
|
// Learn more: https://www.snowpack.dev/#hot-module-replacement
|
|
if (import.meta.hot) {
|
|
import.meta.hot.accept();
|
|
}
|
|
|