From 13e907258781fc93342a9a8f182ceb83d085495d Mon Sep 17 00:00:00 2001 From: Joe Lencioni Date: Thu, 4 Feb 2016 11:01:17 -0800 Subject: [PATCH] Sort static methods above constructor for React I think it makes more sense to put static methods above the constructor in classes. I would like to update the ESLint configuration to match this, but it looks like the react/sort-comp rule does not support it quite yet. https://github.com/yannickcr/eslint-plugin-react/issues/128 --- react/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/README.md b/react/README.md index 5ea9b5248c..e0351f42a7 100644 --- a/react/README.md +++ b/react/README.md @@ -334,8 +334,8 @@ - Ordering for `class extends React.Component`: - 1. `constructor` 1. optional `static` methods + 1. `constructor` 1. `getChildContext` 1. `componentWillMount` 1. `componentDidMount`