Skip to content

Commit 44cc90f

Browse files
committed
Merge pull request airbnb#715 from lencioni/sort-comp-statics
[guide] [react] Sort static methods above constructor
2 parents 24e7fd0 + e007ec5 commit 44cc90f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

react/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,8 @@
334334

335335
- Ordering for `class extends React.Component`:
336336

337-
1. `constructor`
338337
1. optional `static` methods
338+
1. `constructor`
339339
1. `getChildContext`
340340
1. `componentWillMount`
341341
1. `componentDidMount`

0 commit comments

Comments
 (0)