MCPcopy Create free account
hub / github.com/alamorre/fullstack-chat / App

Function App

client-react/src/app.js:6–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import ChatsPage from "./chatsPage";
5
6function App() {
7 const [user, setUser] = useState();
8
9 if (!user) {
10 return <AuthPage onAuth={(user) => setUser(user)} />;
11 } else {
12 return <ChatsPage user={user} />;
13 }
14}
15
16export default App;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected