I am trying to create a simple login page in React using 'react-bootstrap'. This is a simple login screen with "Login" and "Register" buttons, with user being re-directed to a "Register" page on click on "Register" button. Below is my code lines...
<td><Button variant="primary" id="login" type="submit" margin="10px">Login</Button>
{" "}
<Button variant="link" id="register" type="Button" margin="10px" href="/registrationForm">Register</Button>
</td>
I have tried to check official documentation of 'react-bootstrap', but didn't find any example showing how to use button variant "link" for transferring code execution to a different page.
How to transfer execution to a different page by clicking on button with variant set as "link"?
P.S.: I have already tried to search online as well as on SE, but couldn't find a real working example.
Thanks,
Abhay Desai