Reorganize React definitions

This commit is contained in:
James Brantly
2015-08-27 22:09:55 -04:00
parent e5de5c4daf
commit 07c4e447f1
6 changed files with 1080 additions and 2017 deletions
+5 -6
View File
@@ -1,4 +1,4 @@
/// <reference path="react-addons.d.ts" />
/// <reference path="react.d.ts" />
import React = require("react/addons");
import TestUtils = React.addons.TestUtils;
@@ -206,16 +206,15 @@ myComponent.reset();
// --------------------------------------------------------------------------
var children: any[] = ["Hello world", [null], React.DOM.span(null)];
var divStyle = { // CSSProperties
flex: "1 1 main-size",
backgroundImage: "url('hello.png')"
};
var htmlAttr: React.HTMLAttributes = {
key: 36,
ref: "htmlComponent",
children: children,
className: "test-attr",
style: divStyle,
style: { // CSSProperties
flex: "1 1 main-size",
backgroundImage: "url('hello.png')"
},
onClick: (event: React.MouseEvent) => {
event.preventDefault();
event.stopPropagation();