Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement React Router #9

Open
mit3r opened this issue Dec 14, 2024 · 1 comment
Open

Implement React Router #9

mit3r opened this issue Dec 14, 2024 · 1 comment
Labels

Comments

@mit3r
Copy link
Collaborator

mit3r commented Dec 14, 2024

You need to install react-router via npm: https://reactrouter.com/start/library/installation

Then in main.tsx use

<BrowserRouter>
    {//routes...}
</BrowserRouter>

https://reactrouter.com/start/library/routing
Make sample routes: "/" and "/about" to test if it is working.

React-Router is independent of the backend, these routes work as if you had two files: index.html, about.html. But actually we have only index.html.

@mit3r mit3r added good first issue Good for newcomers frontend labels Dec 14, 2024
@akai-org akai-org deleted a comment from mahtabhnp Dec 14, 2024
@OMIIIEE
Copy link

OMIIIEE commented Dec 14, 2024

may i work on this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants