Created
March 21, 2016 06:06
-
-
Save fay-jai/2971f2cf13e5cce2191d to your computer and use it in GitHub Desktop.
Getting Started with Typescript, ReactJS and Webpack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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