15 lines
241 B
React
15 lines
241 B
React
![]() |
import React from "react";
|
||
|
|
||
|
import { useAuth } from "../hooks";
|
||
|
|
||
|
export const Home = () => {
|
||
|
const { user } = useAuth();
|
||
|
|
||
|
return (
|
||
|
<div>
|
||
|
<h1>Home page</h1>
|
||
|
{user && <h2>Hello {user.user.username}</h2>}
|
||
|
</div>
|
||
|
);
|
||
|
};
|