Var requireLogin = (indexState, replace) => ). You likely have some routes which look like this: // src/routes.js Unauthenticated users will be redirected to a login screen, but you'd like your app to remember where it was they were trying to go, and send them there after signing in. Anchor tags will make our HTML Buttons Clickable and after that, you can use Anchor tags href attribute to give the Path to your Button. How do I link a login button to another page in HTML Just write/Declare your HTML Button inside HTML Anchor tags .Your application likely has some routes that require authentication to access. Implement routing using react-router-dom package.
0 Comments
Leave a Reply. |