move app.js to components

This commit is contained in:
deflax 2024-04-29 19:11:29 +03:00
parent 0d02717911
commit 860505c230
5 changed files with 3 additions and 4 deletions

View file

@ -1,6 +1,6 @@
import "./App.css"; import "./App.css";
import Messages from "./components/Messages"; import Messages from "./Messages";
import TextField from "./components/TextField"; import TextField from "./TextField";
import { useEffect, useState } from "react"; import { useEffect, useState } from "react";
import { io } from "socket.io-client"; import { io } from "socket.io-client";

View file

@ -1,7 +1,6 @@
import React from "react"; import React from "react";
import ReactDOM from "react-dom/client"; import ReactDOM from "react-dom/client";
import "./index.css"; import App from './components/App';
import App from "./App";
const root = ReactDOM.createRoot(document.getElementById("root")); const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(<App />); root.render(<App />);