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 Messages from "./components/Messages";
import TextField from "./components/TextField";
import Messages from "./Messages";
import TextField from "./TextField";
import { useEffect, useState } from "react";
import { io } from "socket.io-client";

View file

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