Created
November 4, 2021 09:22
-
-
Save ulexxander/65d1ef4f49ffd44c8bc5658111ffd9aa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
basename prop has '/' by deafult | |
it works as a prefix for all of routes, pushes, links and so on | |
*/ | |
export const App: React.FC = () => { | |
return ( | |
<Router basename="/admin"> | |
{/* ... */} | |
</Router> | |
); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment