Closed
Description
Extracted as a separate issue from #599 (comment)
It seems like instance-variables
works only for state
.
I specified following order:
- static-methods
- instance-variables
- lifecycle
- everything-else
- render
When I declare
class CoolComponent extends Component {
state = {};
...
}
it's OK, but when I add some custom property, e.g.:
class CoolComponent extends Component {
state = {};
someList = [];
...
}
it throws an error:
someList should be placed after componentWillUnmount