Skip to content

Instantly share code, notes, and snippets.

@dilantha111
Created October 18, 2020 05:14
Show Gist options
  • Save dilantha111/0a4af0328eb20eb745e0de0766e5abd9 to your computer and use it in GitHub Desktop.
Save dilantha111/0a4af0328eb20eb745e0de0766e5abd9 to your computer and use it in GitHub Desktop.
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