-
-
Save dilantha111/0a4af0328eb20eb745e0de0766e5abd9 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
import React from 'react'; | |
export interface Props { | |
/** name of the super hero */ | |
name: string; | |
/** age of the super hero */ | |
age: number; | |
} | |
export const Avatar: React.FunctionComponent<Props> = ({ name, age }) => { | |
return ( | |
<div> | |
<h1> Name : {name} </h1> | |
<p> Age : {age} </p> | |
</div> | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment