use-connect
The replacement of react-redux.connect.
Notice
This is not for long-term usage. It is used in case that you are rewrite your component in hooks and thinking:
Oh, I will just leave this connect method here and migrate the react part. I will do it later after react-redux introduce its own api.
// from;Component; // to;const Component = { const ... = ; return ...} // or;const Component = { const state dispatch = ; return ...}
Update react-redux@6 before use this.
Inspired by use-redux