File tree Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Expand file tree Collapse file tree 3 files changed +11
-5
lines changed Original file line number Diff line number Diff line change 1
1
/// <reference path="../typings/react/react.d.ts" />
2
+ /// <reference path="../typings/react/react-dom.d.ts" />
2
3
3
4
import React = require( 'react' ) ;
5
+ import ReactDOM = require( 'react-dom' ) ;
4
6
5
7
class DemoProps {
6
8
public name : string ;
@@ -18,7 +20,7 @@ class Demo extends React.Component<DemoProps, any> {
18
20
}
19
21
20
22
function render ( ) {
21
- React . render (
23
+ ReactDOM . render (
22
24
< Demo name = "World" /> ,
23
25
document . getElementById ( 'app' )
24
26
) ;
Original file line number Diff line number Diff line change 5
5
"repository" : " bvanreeven/react-typescript" ,
6
6
"main" : " index.js" ,
7
7
"dependencies" : {
8
- "react" : " ^0.13.3"
8
+ "react" : " ^0.14.6" ,
9
+ "react-dom" : " ^0.14.6"
9
10
},
10
11
"devDependencies" : {
11
- "browserify" : " ^11.1 .0" ,
12
+ "browserify" : " ^13.0 .0" ,
12
13
"mkdirp" : " ^0.5.1" ,
13
- "typescript" : " ^1.6.2 "
14
+ "typescript" : " ^1.7.5 "
14
15
},
15
16
"scripts" : {
16
17
"build" : " mkdirp public/js/app && tsc && browserify ./temp/app.js -o public/js/app/bundle.js" ,
Original file line number Diff line number Diff line change 6
6
"bundle" : " typings/tsd.d.ts" ,
7
7
"installed" : {
8
8
"react/react.d.ts" : {
9
- "commit" : " af81415504b4edce8dac8446d96857f8018c6e9f"
9
+ "commit" : " b4646ff708f39d2896bcb3e3974667f92e26c5a4"
10
+ },
11
+ "react/react-dom.d.ts" : {
12
+ "commit" : " b4646ff708f39d2896bcb3e3974667f92e26c5a4"
10
13
}
11
14
}
12
15
}
You can’t perform that action at this time.
0 commit comments