Skip to content

Instantly share code, notes, and snippets.

@ms314006
Created January 29, 2023 08:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ms314006/4950c15dc40bc64f32c05f4e28b6baef to your computer and use it in GitHub Desktop.
Save ms314006/4950c15dc40bc64f32c05f4e28b6baef to your computer and use it in GitHub Desktop.
const CommentButton = () => {
const { data: user } = useUser();
return (
<button onClick={user.submitComment}>
送出留言
</button>
);
};
const Header = () => {
const { data: user } = useUser();
return (
<div>{ `${user.name}您好!` }</div>
);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment