Add boilerplate.

This commit is contained in:
Benny van Reeven 2015-09-15 08:10:14 +02:00
parent 27b93a65ce
commit cbb70e2390
9 changed files with 7377 additions and 0 deletions

27
app/app.tsx Normal file
View file

@ -0,0 +1,27 @@
/// <reference path="../typings/react/react.d.ts" />
import React = require('react');
class DemoProps {
public name: string;
}
class Demo extends React.Component<DemoProps, any> {
constructor(props: DemoProps) {
super(props);
}
render() {
return (
<div>Hello {this.props.name}!</div>
);
}
}
function render() {
React.render(
<Demo name="World" />,
document.getElementById('app')
);
}
render();