App.tsx
import * as React from 'react' import {Home} from "./components/Home"; export interface AppProps { compiler: string; framework: string; } class App extends React.Component<AppProps,undefined> { render() { return ( <div> Hello World <Home Link="Home"/> </div> ); } } export default App;
components/Home.tsx
import * as React from 'react' export interface HomeProps {Link?:string } export const Home = (props: HomeProps) => { return ( <div> <a href="#">{props.Link}</a> </div> ); };
References
https://github.com/mhdr/ReactJSSamples/tree/master/008