I'm trying to convert FC to CC and face problem. How do I substitute useHistory? is withRouter a good option? If yes then should I import it from react-router, or react-router-dom. What about dispatch and Redux in general? Spent a lot of time and could not find good example of Redux.
NOTE: I'm using Typescript, so all code should be written accord to its conventions.