Skip to content
This repository was archived by the owner on Dec 1, 2019. It is now read-only.

Commit 849e506

Browse files
author
Stanislav Panferov
committed
feat(*): impl JSX support
1 parent 6a2045d commit 849e506

File tree

7 files changed

+1017
-13
lines changed

7 files changed

+1017
-13
lines changed

examples/tsx/index.tsx

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/// <reference path="./typings/react.d.ts" />
2+
3+
import * as React from 'react';
4+
5+
class Component extends React.Component<{ text: string }, void> {
6+
render() {
7+
return <div>{this.props.text}</div>
8+
}
9+
}
10+
11+
React.render(<Component text="hello world!"/>, (document as any).body)

examples/tsx/package.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "tsx-example",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "webpack.config.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"author": "",
10+
"license": "MIT",
11+
"dependencies": {},
12+
"devDependencies": {
13+
"babel-core": "^5.6.20",
14+
"babel-loader": "^5.3.1",
15+
"html-webpack-plugin": "^1.6.0",
16+
"node-libs-browser": "^0.5.2",
17+
"react": "^0.13.3",
18+
"webpack": "^1.10.1",
19+
"webpack-dev-server": "^1.10.1"
20+
}
21+
}

0 commit comments

Comments
 (0)