Revert 80e4d8b/#11612. Fixes #14176

This commit is contained in:
Justin Bay
2017-01-23 19:33:00 -05:00
parent 4a2ed872c1
commit 1001a8eae9
2 changed files with 0 additions and 15 deletions

1
react/index.d.ts vendored
View File

@@ -165,7 +165,6 @@ declare namespace React {
// Base component for plain JS classes
class Component<P, S> implements ComponentLifecycle<P, S> {
constructor(props?: P, context?: any);
constructor(...args: any[]);
setState<K extends keyof S>(f: (prevState: S, props: P) => Pick<S, K>, callback?: () => any): void;
setState<K extends keyof S>(state: Pick<S, K>, callback?: () => any): void;
forceUpdate(callBack?: () => any): void;

View File

@@ -659,20 +659,6 @@ React.createFactory(TransitionGroup)({ component: "div" });
let newObjShallow = update(obj, { $merge: { b: 6, c: 7 } }); // => {a: 5, b: 6, c: 7}
}
//
// React Component classes super spread arguments
// --------------------------------------------------------------------------
class ConstructorSpreadArgsComponent extends React.Component<{}, {}> {
constructor(...args: any[]) {
super(...args);
}
}
class ConstructorSpreadArgsPureComponent extends React.PureComponent<{}, {}> {
constructor(...args: any[]) {
super(...args);
}
}
//
// The SyntheticEvent.target.value should be accessible for onChange
// --------------------------------------------------------------------------