****(主要问题链接应该可以工作,但它应该封装在路由器内部。如果封装比明显,它会像嵌套路由器。我不想要。我只想在单击链接时呈现注册组件以下)****
返回 (
<h1>Login Page</h1>
Its the login form, no issue with login form
<form action="">
<button }>Login</button>
</form>
<
**(The main issue is this should work, but it should be encapsulate inside the router. If encapsulated than obviously , it would like nested router. which i dont want. i just want to render register component only when i click the link below)**
<Link to="" component={Register}> Create Account </Link>
</div>
);