When you call your component like  <MyComponent {...props} />  – it essentially means, import all available props.

When you explicitly call  action  prop like  <MyComponent action={this.state.action} />  it throws the big fat error.

So the quick solution that worked for me is <MyComponent {...props}

And you declare before props as:

const props = { … content of your parameters }