Created
June 17, 2021 21:33
-
-
Save florianmartens/3c31e3a7e46e05a2cef33d97be0e9958 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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