Skip to content

Instantly share code, notes, and snippets.

@Sergioamjr
Created May 22, 2021 17:00
Show Gist options
  • Save Sergioamjr/5dba156378888cbd345e7adfe1c288a1 to your computer and use it in GitHub Desktop.
Save Sergioamjr/5dba156378888cbd345e7adfe1c288a1 to your computer and use it in GitHub Desktop.
import useUserContext from "~hooks/useUserContext";
export default function UserInfo() {
const userName = useUserContext(); // Inicialmente será '' e logo em seguida 'John'.
return <p>Olá, {userName}</p>;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment