Fixing renderComponent

It should return a descriptor, not be void.
This commit is contained in:
Phips Peter
2014-10-03 10:25:49 -07:00
parent 4598e7d76b
commit 596ab8e1ee
+1 -1
View File
@@ -10,7 +10,7 @@ declare module "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;
export function renderComponent<P>(component: Descriptor<P>, container: Element, callback?: () => void): Descriptor<P>;
export function unmountComponentAtNode(container: Element): boolean;