Skip to content

Instantly share code, notes, and snippets.

Created Oct 18, 2020
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 (
<h1> Name : {name} </h1>
<p> Age : {age} </p>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment