sort-comp: static defaultProps
must be placed under componentWillUnmount() #122
Closed
Description
opened on Jun 18, 2015
For some reason, the ES6 class composition for React isn't taken into account.
For all obvious reasons, while this is supposed to be the right sort order..
class AccountInfo extends Component {
static propTypes = {
accountId: PropTypes.string.isRequired
};
static defaultProps = {
accountId: ''
};
..a warning shows that says:
warning defaultProps must be placed after componentWillUnmount react/sort-comp
Metadata
Assignees
Labels
No labels
Activity