I receive the following react/sort-comp error
UNSAFE_componentWillReceiveProps should be placed after setAgreementStatusFormValue
where setAgreementStatusFormValue is not static method
According to description here
the order should be like this
order: [
'static-methods',
'lifecycle',
'everything-else',
'render'
],
my method setAgreementStatusFormValue is under group 'everything-else'
UNSAFE_componentWillReceiveProps isn't a static method either, it's a lifecycle method.
What version of React are you using? Have you specified that in your eslintrc?
@ljharb we specify react: { version: 'detect' } in our eslint config because we share it between projects on different version of React
ok, and which version of react is being used on this project?
@ljharb React version 16.8.6
Most helpful comment
@ljharb React version
16.8.6