move app.js to components
This commit is contained in:
parent
0d02717911
commit
860505c230
5 changed files with 3 additions and 4 deletions
|
@ -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";
|
||||||
|
|
|
@ -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 />);
|
||||||
|
|
Loading…
Reference in a new issue