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
// @flow
type Props = {
accountId: number,
}
class ExampleCompnent extends React.Component<Props> {
// I am NOT using props.accountId here
}
const mapDispatchToProps = (dispatch, ownProps: Props) => ({
console.log(ownProps.accoutnId);
})
but I get the following error message: [eslint] 'accountId' PropType is defined but prop is never used (react/no-unused-prop-types)
defining another type specially for mapDispatchToProps does not make sense, since OwnProps is coming from ExampleCompnent, what should I do ?
The text was updated successfully, but these errors were encountered:
"react": "^16.2.0", "eslint-plugin-react": "^7.9.1",
but I get the following error message:
[eslint] 'accountId' PropType is defined but prop is never used (react/no-unused-prop-types)
defining another type specially for mapDispatchToProps does not make sense, since OwnProps is coming from ExampleCompnent, what should I do ?
The text was updated successfully, but these errors were encountered: