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

React-router-dom needs to be updated #97

Open
pritipsingh opened this issue Jan 5, 2023 · 2 comments
Open

React-router-dom needs to be updated #97

pritipsingh opened this issue Jan 5, 2023 · 2 comments

Comments

@pritipsingh
Copy link

Switch and other methods have been deprecated. They no longer support it. It needs to be updated with - Routes

@pritipsingh
Copy link
Author

If possible can I work on this issue?

@zainytech
Copy link

zainytech commented Jan 26, 2024

you can use Routes instead of using Switch in react-router-dom package. you can have an example as

<BrowserRouter>
<Routes>
<Route path="/" element={<Home />} />
</Routes>
</BrowserRouter>

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

No branches or pull requests

2 participants