How to replace withRouter? #10418
Unanswered
itamaroh7
asked this question in
v5 to v6 Migration
Replies: 1 comment 1 reply
-
The docs have an example: here |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to replace withRouter that gets connect / memo function at the export default code line?
example:
export default withRouter(
connect(mapStateToProps, {
someFunction
})(Component)
);
Beta Was this translation helpful? Give feedback.
All reactions