useHistory is not exported from react-router-dom
You might get this error after upgrading react-router-dom to version 6.x.x Attempted import error: ‘useHistory’ is not exported from ‘react-router-dom’.…
You might get this error after upgrading react-router-dom to version 6.x.x Attempted import error: ‘useHistory’ is not exported from ‘react-router-dom’.…
When I am building react applications, I have got this error multiple times, thought of sharing here so that it…