How to write page / folder path in reactjs?

I want the register page to open when I press the button on the login page. how can i show folder path? (with a href)

the login path: components/login the register path: components/register

my code:

<a href="/components/register">Register</a>

please help meee :(

Read more here:

Content Attribution

This content was originally published by dkrks at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: