Starting react-addons module

We will use module merging to merge addons into the existing react
context.
This commit is contained in:
Phips Peter
2014-10-01 14:19:40 -07:00
parent 214a2a3dca
commit bf5cd4b9b1
3 changed files with 125 additions and 0 deletions
+4
View File
@@ -4,6 +4,10 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare module "react" {
export = React;
}
declare module React {
export function createClass<P, S>(specification: Specification<P, S>): Factory<P>;
export function renderComponent(component: Descriptor<any>, container: Element, callback?: () => void): void;