mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-14 08:38:08 -05:00
Merge pull request #715 from lencioni/sort-comp-statics
[guide] [react] Sort static methods above constructor
This commit is contained in:
@@ -334,8 +334,8 @@
|
||||
|
||||
- Ordering for `class extends React.Component`:
|
||||
|
||||
1. `constructor`
|
||||
1. optional `static` methods
|
||||
1. `constructor`
|
||||
1. `getChildContext`
|
||||
1. `componentWillMount`
|
||||
1. `componentDidMount`
|
||||
|
||||
Reference in New Issue
Block a user