You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* methods/properties other than `displayName`, `propTypes`, `render` and useless constructor (same detection as ESLint [no-useless-constructor rule](http://eslint.org/docs/rules/no-useless-constructor))
10
+
* instance property other than `this.props` and `this.context`
11
+
*`render` method that return anything but JSX (`undefined`, `null`, etc.)
11
12
* presence of `ref` attribute in JSX
12
13
13
-
If none of these 3 elements are found then the rule warn you to write this component as a pure function.
14
+
If none of these 4 elements are found then the rule warn you to write this component as a pure function.
14
15
15
-
The following patterns are considered warnings:
16
+
The following pattern is considered warnings:
16
17
17
18
```js
18
19
var Hello =React.createClass({
@@ -22,17 +23,6 @@ var Hello = React.createClass({
0 commit comments