Add boilerplate.
This commit is contained in:
parent
27b93a65ce
commit
cbb70e2390
9 changed files with 7377 additions and 0 deletions
27
app/app.tsx
Normal file
27
app/app.tsx
Normal 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();
|
||||
Loading…
Add table
Add a link
Reference in a new issue