Skip to content

Instantly share code, notes, and snippets.

@florianmartens
Created June 17, 2021 21:33
Show Gist options
  • Save florianmartens/3c31e3a7e46e05a2cef33d97be0e9958 to your computer and use it in GitHub Desktop.
Save florianmartens/3c31e3a7e46e05a2cef33d97be0e9958 to your computer and use it in GitHub Desktop.
interface User {
name: string;
}
interface Props {
user: User
setUser: (user: User) => void;
}
const UserDisplay = (props: Props) => {
return (
<>
<div>{user.name}</div>
</>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment