Open Mstar0816 opened 4 months ago
Make sure that the react-router-dom package is installed in your project. To use the useHistory hook inside a functional component in a React application, you must ensure that you have properly installed the react-router-dom package in your project and imported it into the file where you are trying to use the useHistory hook.
Try using Hook function. Or try installing following. npm i @uidotdev/usehooks
Inside functional component, I can't import the useHistory hook from react-router-dom.