1
0
mirror of https://github.com/lexogrine/dota2-react-hud.git synced 2026-05-04 04:23:10 +02:00

updated react

This commit is contained in:
Hubert Walczak
2023-05-16 14:18:16 +02:00
parent 34fe3ab977
commit a475763d62
5 changed files with 23487 additions and 34548 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ import Layout from './HUD/Layout/Layout';
import api, { port, isDev } from './api/api';
import ActionManager, { ConfigManager } from './api/actionManager';
import { Dota2, DOTA2GSI, PlayerExtension } from 'dotagsi';
import { io } from "socket.io-client";
import io from "socket.io-client";
import { loadAvatarURL } from './api/avatars';
import { Match } from './api/interfaces';
import "./HUD/GameHUD/gamehud.scss";
+4 -6
View File
@@ -1,11 +1,9 @@
import React from "react";
import ReactDOM from "react-dom";
import "./index.css";
import "./fonts/rajdhani.css";
import App from "./App";
import { createRoot } from 'react-dom/client';
ReactDOM.render(<App />, document.getElementById("root"));
// If you want your app to work offline and load faster, you can change
// unregister() to register() below. Note this comes with some pitfalls.
// Learn more about service workers: https://bit.ly/CRA-PWA
const container = document.getElementById('root');
const root = createRoot(container!); // createRoot(container!) if you use TypeScript
root.render(<App />);