title: Import with react version 5.0.1 cause error
body: <p>Recently I pulled a new project from github and did all of the procedures as it should be, but upon starting the client I encountered this error message: 'Attempted import error: useHistory is not exported from react-router-dom'. I rechecked the version of react-router-dom package, and it was @5.0.1. If someone is familiar with such an issue, please suggest me some solutions, thanks in advance.</p>