Closed
Description
As specified in React docs:
It's also possible to pass a function with the signature
function(state, props) => newState
.
So when we use something like this.setState((state, props) => {})
, that props
argument must be covered by rule prop-types
too.