import * as React from "react" ; export interface TypeScriptComponentProps < T extends string = string > { message : T ; } export default class TypeScriptComponent extends React . Component < TypeScriptComponentProps > { render ( ) { return < p > { this . props . message } < /p>; } }