Skip to content

Commit d223586

Browse files
committed
Tweak export
1 parent 43f172e commit d223586

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

chat-app/client/src/App.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useState } from "react";
22
import useSocket from "./hooks/useSocket";
33
import "./App.css";
44

5-
export default function App() {
5+
const App = () => {
66
const { messages, sendMessage } = useSocket("http://localhost:3000");
77
const [input, setInput] = useState("");
88

@@ -33,4 +33,6 @@ export default function App() {
3333
</div>
3434
</div>
3535
);
36-
}
36+
};
37+
38+
export default App;

0 commit comments

Comments
 (0)