Skip to content

Instantly share code, notes, and snippets.

@fay-jai
Created March 21, 2016 06:06
Show Gist options
  • Save fay-jai/2971f2cf13e5cce2191d to your computer and use it in GitHub Desktop.
Save fay-jai/2971f2cf13e5cce2191d to your computer and use it in GitHub Desktop.
Getting Started with Typescript, ReactJS and Webpack
// Remember to rename your file to Hello.tsx and
// place it within your src/ directory
import * as React from "react";
interface HelloProps {
name: string;
}
class Hello extends React.Component<HelloProps, {}> {
render() {
return <div>Hello, {this.props.name}</div>;
}
}
export default Hello;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment