mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-26 12:10:44 +08:00
Change most uses of ComponentClass<P> to a type that represents the class
This more accurately reflects that createClass returns a class, not an instance of a class. This will be more important as React v0.13 is released which supports using ES6 classes as components.
This commit is contained in:
1 parent
2deb7cab53
commit
7bb2b48cd2
2 files changed
+10
-9
No files matched your search
@@ -32,7 +32,7 @@ var INPUT_REF: string = "input";
|
||||
// Top-Level API
|
||||
// --------------------------------------------------------------------------
|
||||
|
||||
var reactClass: React.ComponentClass<Props> = React.createClass<Props>({
|
||||
var reactClass = React.createClass<Props>({
|
||||
getDefaultProps: () => {
|
||||
return <Props>{
|
||||
hello: undefined,
|
||||
|
||||
Reference in new issue
Block a user