We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43f172e commit d223586Copy full SHA for d223586
1 file changed
chat-app/client/src/App.jsx
@@ -2,7 +2,7 @@ import { useState } from "react";
2
import useSocket from "./hooks/useSocket";
3
import "./App.css";
4
5
-export default function App() {
+const App = () => {
6
const { messages, sendMessage } = useSocket("http://localhost:3000");
7
const [input, setInput] = useState("");
8
@@ -33,4 +33,6 @@ export default function App() {
33
</div>
34
35
);
36
-}
+};
37
+
38
+export default App;
0 commit comments