Skip to content

Instantly share code, notes, and snippets.

@dilantha111
Created Oct 18, 2020
Embed
What would you like to do?
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