Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Class] Fix usage of AssignmentExpression
- Loading branch information
1 parent
785410b
commit 775ebea
Showing
5 changed files
with
92 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,15 @@ | ||
class Foo extends Component { | ||
class Foo1 extends Component { | ||
static propTypes = { | ||
foo: React.PropTypes.string | ||
foo1: React.PropTypes.string | ||
}; | ||
|
||
render() {} | ||
} | ||
|
||
class Foo2 extends Component { | ||
render() {} | ||
} | ||
|
||
Foo2.propTypes = { | ||
foo2: React.PropTypes.string | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,19 @@ | ||
class PureRenderComponent extends Component { | ||
} | ||
|
||
class Foo extends PureRenderComponent { | ||
class Foo1 extends PureRenderComponent { | ||
static propTypes = { | ||
foo: PropTypes.string.isRequired | ||
foo1: PropTypes.string.isRequired | ||
}; | ||
render () { | ||
} | ||
} | ||
|
||
class Foo2 extends PureRenderComponent { | ||
render () { | ||
} | ||
} | ||
|
||
Foo2.propTypes = { | ||
foo2: PropTypes.string.isRequired | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters